接口應用測試

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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章