![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
study73
擅长java,web框架
展开
-
spring 入门 之运行机制
技术不太好,对spring在慢慢学习ing.写的有错误还望指正..spring的运行需要在web.xml加上spring的监听,配置spring的xml文件路径 contextConfigLocation classpath:config/applicationContext-*.xml 不写上边那个的话也行,代表默认路径在java文件有体现,下边是配置监听原创 2014-02-22 10:49:57 · 1218 阅读 · 2 评论 -
spring tx:advice ...aop:config配置事物
spring来配置事务管理,记住三个参数就可以了切入点 需要注入的方法 适配器,把注入的方法注入切入点的位置,是连接pointcut跟advice的工具下面上实例 <aop:pointcut expression="execution(public * com.test.registration.service.*.*(..))"原创 2014-02-25 12:58:09 · 3037 阅读 · 0 评论