摘要: 引入Spring项目时idea右下角经常会出现Spring Configuration Check提示以及xml配置文件出现application context not configured for this file提示 其实就是Spring配置文件没有引入到项目中去,解决办法: file-Pr 阅读全文
posted @ 2020-05-11 14:09 一颗心的石头 阅读(5775) 评论(0) 推荐(0) 编辑
摘要: 1、@Service用于标注业务层组件 2、@Controller用于标注控制层组件(如struts中的action) 3、@Repository用于标注数据访问组件,即DAO组件. 4、@Component泛指组件,当组件不好归类的时候,我们可以使用这个注解进行标注。 5、@Autowired与@ 阅读全文
posted @ 2020-05-11 09:26 一颗心的石头 阅读(21531) 评论(0) 推荐(1) 编辑