The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

springMVC中出现了此异常,在网上查阅了很多关于此异常出现的情况和解决方案,和我本地场景都不匹配(因为下意识觉得配置注解扫描支持 .* 的写法,就把这个错误给忽略了):

 

 

最后发现错误是在spring配置文件中开启注解扫描时:

 

 

应该写成:

 

 注:spring配置注解扫描应该不支持 .* 的写法,测试了在spring注解方式实现bean实例化时,使用 .* bean工厂也会找不到对应的bean id

 

posted @ 2020-04-21 00:44  一问叁不知  阅读(1705)  评论(0编辑  收藏  举报