parent
82d6375e63
commit
d24b7a308f
@ -0,0 +1,25 @@
|
||||
package com.xxl.job.admin.core.util;
|
||||
|
||||
import freemarker.ext.beans.BeansWrapper;
|
||||
import freemarker.template.TemplateHashModel;
|
||||
|
||||
/**
|
||||
* ftl util
|
||||
*
|
||||
* @author xuxueli 2018-01-17 20:37:48
|
||||
*/
|
||||
public class FtlUtil {
|
||||
|
||||
public static TemplateHashModel generateStaticModel(String packageName) {
|
||||
try {
|
||||
BeansWrapper wrapper = BeansWrapper.getDefaultInstance();
|
||||
TemplateHashModel staticModels = wrapper.getStaticModels();
|
||||
TemplateHashModel fileStatics = (TemplateHashModel) staticModels.get(packageName);
|
||||
return fileStatics;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -1 +1,21 @@
|
||||
admin_name=任务调度中心
|
||||
|
||||
login_btn=登录
|
||||
login_remember_me=记住密码
|
||||
login_username_placeholder=请输入登录账号
|
||||
login_password_placeholder=请输入登录密码
|
||||
login_username_empty=请输入登录账号
|
||||
login_username_lt_5=登录账号不应低于5位
|
||||
login_password_empty=请输入登录密码
|
||||
login_password_lt_5=登录密码不应低于5位
|
||||
login_success=登录成功
|
||||
login_fail=登录失败
|
||||
|
||||
logout_btn=注销
|
||||
logout_confirm=确认注销登录?
|
||||
logout_success=注销成功
|
||||
logout_fail=注销失败
|
||||
|
||||
system_tips=系统提示
|
||||
system_ok=确定2
|
||||
system_close=关闭2
|
@ -0,0 +1,6 @@
|
||||
admin_name=Job Scheduling Center
|
||||
|
||||
login_btn=Login
|
||||
login_remember_me=Remember Me
|
||||
login_username_placeholder=Please input username
|
||||
login_password_placeholder=Please input password
|
@ -0,0 +1,6 @@
|
||||
admin_name=任务调度中心
|
||||
|
||||
login_btn=登录
|
||||
login_remember_me=记住密码
|
||||
login_username_placeholder=请输入登录账号
|
||||
login_password_placeholder=请输入登录密码
|
Loading…
Reference in new issue