路径说明: 一.加载类目录下的配置文件 @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration("classpath:applicationContext_test.xml") public class MyTest1 { @Autowired private Type t;//获取在applicationContext_test.xml中被注入的Type实例 @Autowired private HibernateT
原理:maven加载jar包过程,默认的是先扫描本地仓库,若本地仓库没有,则扫描远程仓库下载.默认的conf/settings.xml文件没有配置远程仓库,所以扫描的是maven的中央仓库(在国外),所以慢. 解决方法:配置国内镜像(如阿里云的镜像) 修改conf/settings.xml文件,配置阿里云镜像代码 <mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given rep
异常描述: The matching wildcard is strict, but no declaration can be found for element 'dubbo:reference' Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/