san1 简易流程图
2 关于@Autowired,报错问题
处理办法:
①UserServiceImpl没有@Service注解
②spring-service配置文件中,没有配置UserServiceImpl的bean 或 加载包
<bean class="com.ljt.service.impl.UserServiceImpl"></bean>
<context:component-scan base-package="com.ljt.service"></context:component-scan>
③web.xml中没有配置加载,spring-service
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-*.xml</param-value>
</init-param>