package test; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import com.using.api.service.GoodsServiceImpl; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations="classpath:config/spring.xml") public class AspectJTest { @Autowired GoodsServiceImpl goddsService; @Test public void test1(){ } }
【原】Spring测试类代码
package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.contex...
- 发表于 2019-07-11 12:00
- 阅读 ( 131 )
- 分类:网络文章
你可能感兴趣的文章
随机文章
- Java字符串(String)转成char[]数组,char数组转String 3956 浏览
- Java字符串(String)转成byte[]数组,byte数组转String 3400 浏览
- 结合源码浅析Struts2与Spring整合的原理 3296 浏览
- java对竖线|进行分割(split)操作 3668 浏览
- MySQL中查询、删除重复记录的方法大全 4212 浏览
相关问题
条评论
请先 登录 后评论
发送私信
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!