Spring Boot: Errors & Solutions
2018, February, 18
Spring Boot
Error: java.lang.ClassNotFoundException: ch.qos.logback.classic.joran.JoranConfigurator
When: During Application Launch
Solution: Clear Maven cacheFirst save and close Spring STS. In Linux Maven cache folder is located in ~/.m2/repository/. Delete all files inside it. Start Spring STS. It will download all Maven dependenices. It will takes sometime. Run app. Hopefully it should start normally.
Error: com.fasterxml.jackson.databind.JsonMappingException
When: Error received in response to a POST request
Solution: Always include a no-arguments constructor in Model POJO class
Error creating bean with name ‘entityManagerFactory’
When: During Application Launch
Solution: Remove and database keywords from Model classWhen using database with Spring app, always ensure that Model POJO class name and it’s member field names are not database Rerserve/Keywords.