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

📄 basedaotestcase.java

📁 动态实现基于角色的权限管理Acegi+hibernate
💻 JAVA
字号:
package sample.test;
import junit.framework.TestCase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class BaseDAOTestCase extends TestCase{
	protected static Log log = LogFactory.getLog(BaseDAOTestCase.class);
    protected ApplicationContext ctx = null;

    public BaseDAOTestCase() {
        String[] paths = {"/applicationContext-basic.xml","/applicationContext-security-acegi.xml","/application.xml"};
        ctx = new ClassPathXmlApplicationContext(paths);
    }

}

⌨️ 快捷键说明

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