Skip to content

Tag: spring-boot

Spring boot app terminated at startup

I have created a spring boot project using spring initilizer. I use spring-boot-cli version v1.5.3.RELEASE. I just try to run: But my server won’t stay running, it is closing automatically. On port 8080 I have no other connection: LATER EDIT: Still not working. EDIT: here is the pom file: Answer I added…

Accessing Spring RestApi using POSTMAN (404 not found)

I’m trying to access a simple api using POSTMAN but every time it give the error 404 not found. What can I do to access my api? This is my PostApi class, My main class is in BloggApplication.java. I call the API using POSTMAN as this, with body Answer I solved the issue I moved Application class which c…

How to log errors in a EnvironmentPostProcessor execution

I have created an EnvironmentPostProcessor in SpringBoot to fetch properties from database and attached it to the Spring’s Environment as a PropertySource. This is the code I have: And this is the main/META-INF/spring-factories file had to be created: The code works well, it fetches from the db what I n…