Home

2. If Java class does not raise syntax error or at runtime controller class not found. Like - The requested resource [/DemoApplication/add] is not available) raise at runtime.

 

Solution:

Your java(Controller) class is not available in the java source folder. Check, is your java(Controller) class is

inside this path src/main/resources then remove it And create a java source folder

like- main.java. And create Controller class inside that java source folder with package




1. During JDK setup in eclipse. If JDK does not support that means a JDK version related error.


Solution:


Add bellows two lines before -vmargs Line of eclipse.ini(C:\Users\roman\Desktop\eclipse\eclipse.ini) file


 -vm

C:\Java\JDK\1.8\bin\javaw.exe ( Use your java installation path of javaw.exe)




4. org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract java.util.List com.roman.demo.ProgrammerRepo.ProgrammerRepo.findN(java.lang.String)

 Solution :  Add below query annotation  @Query(value="SELECT * FROM programmer WHERE name = ?1", nativeQuery = true ) instead of ...