当前位置: 移动技术网 > IT编程>开发语言>Java > 【原】Spring测试类代码

【原】Spring测试类代码

2019年07月11日  | 移动技术网IT编程  | 我要评论
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(){

}
}

 

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网