Skip to content

Tag: spring-boot

How do I execute a docker container

I created the images locally and created one repository in DockerHub called testName/backend. The docker images command shows the created images. And I would like to run the container with a command in the format docker run yourImage:version. So according to this (so I think I should call such a command: dock…

Propper way to describe request body as java class

What is the propper way to describe json body like this in spring-boot app? For now i have class like bellow, but i have problem with serialization of mpa and genres fields. Genre and Rating: Answer Jackson ObjectMapper cannot create the object, because neither default constructor exists nor any other creator…

Log4j2 log file not created

For a spring-boot application I’m trying to set up a log4j2 logger that will write the logs into a few sperate files, but the logs are only written to the console, I’ve checked my user_dir to make sure I’m not looking in the wrong location as well. This is the code that should write the test…