org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.Error: Unresolved compilation problem: 

这个问题出现在淘淘商城项目初期,我在写PageController控制器的时候,return字符串类型的页面时,出现的

java.lang.Error: Unresolved compilation problem: 错误

当我修改掉spring配置文件的:

    <context:property-placeholder location="classpath:resource/*.properties" />和

<!-- 扫描包加载Service实现类 -->
    <context:component-scan base-package="com.taotao.service"></context:component-scan>

后,问题就解决了

猜你喜欢

转载自blog.csdn.net/zyh99whh/article/details/83790103