⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 servicefactory.java

📁 使用spring+ibatis框架编写的单词卡片记忆系统。
💻 JAVA
字号:
package cn.avl.wordcard.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.avl.wordcard.service.WordcardService;

public class ServiceFactory {
	private volatile static WordcardService wordcardService=null;
	public static synchronized WordcardService getWordcardService(){
		ApplicationContext ac=new ClassPathXmlApplicationContext(new String[]{"/cn/avl/wordcard/dao/ibatis/conf/wordcard-dao.xml"});
		wordcardService=(WordcardService)ac.getBean("wordcardService");
		return wordcardService;
	}	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -