Closed sunmingtao closed 3 years ago
Turns out when I used springboot cli to create the project skeleton, the default package is com.example
. Then I changed it to com.smt
. However, I forgot to change the package name in the main Spring boot class. Oddly, it is not a compilation error, just a warning complained by Intellij. Fixing the package name fixed the error
Standard spring boot settings
Controller:
Access http://localhost:8080/greeting sees whitelabel error page.