![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
天生痞性难自弃
这个作者很懒,什么都没留下…
展开
-
eclipse下maven管理Spring项目构:SpringAOP,基于XMl,基于注解声明事务,及事务的传播行为
一:在applicationContext.xml中加入 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns...原创 2018-09-11 16:50:42 · 276 阅读 · 0 评论 -
Spring中使用注解实现Bean的装配和AOP
配置applicationContext.xml //开启包扫描 <context:component-scan base-package="com.qst"/> //开启注解 <aop:aspectj-autoproxy></aop:aspectj-autoproxy> 一:基于注解的装配 1)类的修饰 @Component:适用于任何类 ...原创 2018-09-11 10:38:21 · 636 阅读 · 0 评论 -
Eclipse工具中使用maven管理Spring项目的构建
Hello World 1.2.1 Maven的使用 1)maven的javase工程目录 file->new->maven project 2)maven的settings.xml的配置:更改镜像,指定仓库地址,指定代理服务器 1.2.2第一个程序 1)所需基础jar包:core context beans commons-loggi...原创 2018-09-11 11:10:09 · 134 阅读 · 0 评论