![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
怪怪517
这个作者很懒,什么都没留下…
展开
-
spring 单元测试方法
1、当你的配置文件在 src/main/resources下面 @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath*:/spring/applicationContext-*.xml") public class ProducerTest {}原创 2016-11-18 16:08:09 · 350 阅读 · 0 评论 -
当spring 容器初始化完成后执行某个方法
原文地址:http://www.cnblogs.com/rollenholt/p/3612440.html 在做web项目开发中,尤其是企业级应用开发的时候,往往会在工程启动的时候做许多的前置检查。 比如检查是否使用了我们组禁止使用的Mysql的group_concat函数,如果使用了项目就不能启动,并指出哪个文件的xml文件使用了这个函数。 而在Spring的web项目中转载 2016-12-12 10:08:56 · 308 阅读 · 0 评论