Skip to content

Tag: spring

Read a word (.docx) file in java

I have a word document which was generated with docx4j, when i unzip the docx file, the contents of folder is the contents of ./word/document.xml is as below the relationship xml has below relationship when we unzip chunk.docx it has below file contents and the ./word/document.xml has below contents relations…

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…

@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 …

Error while querying tables using hibernate

I am trying to query a table called student in MySQL. This is the structure: Here is the java code which I use to query: This is the error message: Here is the image of the referenced libraries: Insertion into table is working correctly. Only querying isn’t. What is the error here? Please comment if ext…