接口应用测试

public class InventoryCoreTemplateServiceImplRealDBTest {

	public static void main(String[] args) throws IOException {
		
		Logger.initAndWatch(); //系统日志

		ConnectionInfo connInfo = InventoryCoreTemplateRealDBTestHelper
				.getMemoryConnectionInfo(); //连接信息

		DBConnectionProviderFactory.getInstance().initMybatisProvider(
				ImplFinals.CONN_KEY, connInfo, "", "conf.xml"); //初始化mybatis连接

		DependencyManager.getInstance().init(
				ImplDependency.getDependencyModule()); //依赖模块
		
		InventoryCoreTemplateService inventoryCoreTemplateService = DependencyManager.getInstance().get(InventoryCoreTemplateService.class); //服务实例
	...
	}
}

发布了33 篇原创文章 · 获赞 2 · 访问量 4万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章