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




No comments:

Post a Comment

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 ...