【原】Spring测试类代码
程序员文章站
2022-07-05 10:53:08
package test; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.spring... ......
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(){ } }
上一篇: HCIE第一天复习(交换部分)
下一篇: 设计模式-10-适配器模式-[组合模式]