项目结构:
用junit写的测试类
DubboTest
.java;
spring用的配置文件 applicationContext.xml
spring mvc用的配置文件 servlet-context.xml
在
DubboTest.java中用注解载入了applicationContext.xml文件,代码如下:
package
com.lpf.study.test;
import
org.junit.Test;
import
org.junit.runner.RunWith;
import
org.springframework.beans.factory.annotation.Autowired;
import