版权声明:@CopyRight转载请注明出处 https://blog.csdn.net/LI_AINY/article/details/87353873
因为使用是@RestController注解Controller,则Controller中的方法无法返回页面,配置的视图解析器不起作用,返回的内容就是Return 里的内容
使用@Controller即可
分开写两个控制器
想返回字符串就用RestController
想反悔页面就用Controller
因为使用是@RestController注解Controller,则Controller中的方法无法返回页面,配置的视图解析器不起作用,返回的内容就是Return 里的内容
使用@Controller即可
分开写两个控制器
想返回字符串就用RestController
想反悔页面就用Controller