写项目 的时候,发现 路径是对的,也能进入debug 页面 ,返回值也不为空,但每次Psotman都显示404 no message available。
检查发现 因为自己controller 写的注解是 @controller,而接口写的是@postmapping, 把 @controller 改成 @restcontroller 就有返回值了。
写项目 的时候,发现 路径是对的,也能进入debug 页面 ,返回值也不为空,但每次Psotman都显示404 no message available。
检查发现 因为自己controller 写的注解是 @controller,而接口写的是@postmapping, 把 @controller 改成 @restcontroller 就有返回值了。