如下图 在controller中我用restcontroller 注解,转向的是return后面的字符串hello ,这种写法转不到thymeleaf模板映射的templates文件件的hello.html, 改成controller 注解就可以成功转向
如下图 在controller中我用restcontroller 注解,转向的是return后面的字符串hello ,这种写法转不到thymeleaf模板映射的templates文件件的hello.html, 改成controller 注解就可以成功转向