public static void main(String[] args) {

        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext();
        ctx.getEnvironment().setActiveProfiles("production");
        ctx.setConfigLocation("applicationContext.xml");
        ctx.refresh();

        userDao = (UserDao) ctx.getBean("userDaoImpl");

        /**
         * 生成测试用户 SQL
         */
        UserCreateCommon.generateCreateTestUserSQL(userDao);

        /**
         * 生成指定用户 SQL
         */
        UserCreateCommon.generateCreateSpecifyUserSQL(userDao, "msoa", "msoaSH", RoleEnum.ADMIN, "");

        System.exit(1);
    }
public static void main ( String [ ] args ) { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext ( ) ; ctx . getEnvironment ( ) . setActiveProfiles ( "production" ) ; ctx . setConfigLocation ( "applicationContext.xml" ) ; ctx . refresh ( ) ; userDao = ( UserDao ) ctx . getBean ( "userDaoImpl" ) ; UserCreateCommon . generateCreateTestUserSQL ( userDao ) ; UserCreateCommon . generateCreateSpecifyUserSQL ( userDao , "msoa" , "msoaSH" , RoleEnum . ADMIN , "" ) ; System . exit ( 1 ) ; }
@param args