Skip to content

Tag: java

Is there any way to use something like List.class?

I’m using SpringBoot with OpenAPI and SwaggerUI to implement a rest api. I want to annotate a @GetMapping method with @ApiResponses to provide the schema of the response, but I’m struggling with the parameter implementation of @Schema. The return type of my method is List<ScanDTO>, so I trie…

Reasons why a JAR on classpath not loaded

I have a SpringBoot application that is run with the command java -classpath <longlist of JARs> com.example.MyApp. I have the path to a JAR – in this case liquibase-core-4.4.0.jar – specified on the classpath. However, on startup the app complains about missing class definitions. Attaching a…

@Value not getting the value from application.properties

im trying to get a value from the application.properties in a Spring boot app. The class is defined with the tag @Component, I already tried @Service too, and with @PropertySource(“classpath:application.properties”) and without the @PropertySource but in any case they get the value. The interface …