Fork me on GitHub

Failed to load resource: the server responded with a status of 404 (Not Found)

关于这个问题,今天在迁移代码的时候发生,这是第二次这个问题了,记下

javaweb项目在使用ajax进行交互时,连接后台controller层时是使用spring注解的

此时如果不是特别完善的项目,你在新建一个功能包时,需要收到在包内的spring配置文件手动配置这个基础包

在spring配置文件下

<context:component-scan base-package="com.hex.goframe...."/>

需要自己添加,可依样画葫芦
posted @ 2018-09-28 14:45  doMakeBetter  阅读(22615)  评论(0编辑  收藏  举报