org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set

First remove all of your configuration Spring Boot will start it for you. Make sure you have an application.properties in your classpath and add the following properties. If you really need access to a SessionFactory and that is basically for the same datasource, then you can do the following (which is also documented here although for XML, not JavaConfig). That way … Read more

Spring boot – Request method ‘POST’ not supported. Tried everything

Following might help. While you deploy the application, spring boot displays all the available services on the console. Check the POST method to create is being displayed or not. Check that there shouldn’t be any contradiction with other services. GET/PUT/POST If there are services not deployed, try adding ‘/’ before other services – GET, PUT, … Read more

java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

How do you run the application? It’s probably because you use Gradle as the build system and JDK14 and the Gradle version is old. Reference: https://github.com/gradle/gradle/issues/10248 If you use Gradle Wrapper then refer to $PROJECT_ROOT/gradle/wrapper/gradle-wrapper.properties. Property distributionUrl should be: distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip If it’s an older version then change it, run ./gradlew clean build and try again.

Spring Boot – Unable to resolve Whitelabel Error Page

Please define method in your controller: You may define @RequestMapping(value = “/”, method = RequestMethod.GET) or you may directly use @GetMapping there might be some more conflicts in your pom, like no need add tomcat dependency as its already embedded so below can be removed. To enable support for JSP’s, add a dependency on tomcat-embed-jasper. and after … Read more