Because you want to use a Java Web project to connect using the Springboot framework, the Java Web Project uses JSP, so you need to introduce JSP support in spring boot
Introduction Method online A lot, and now record the problems you have encountered
The annotations used in my controller are Restcontroller, so you can only display the string in the page when you return the page, such as return "index" result, enter the corresponding URL, the page will display index t_t
This problem has been plagued for a long time, and finally found a solution on the Internet:
The original return "index" this writing to use @controller annotations, and @restcontroller corresponding to return JSP page code as follows:
Public Modelandview Doview () { Modelandview mv = new Modelandview ("index"); return MV; }
Original: http://blog.csdn.net/zmken497300/article/details/53418372
Problems with adding JSP support in Springboot