91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 78KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-13
  • 語言: 其他
  • 標簽: jfinal??登錄注冊??

資源簡介

jfinal框架之登錄注冊,具體細節,請看https://blog.csdn.net/qq_37905259/article/details/80553663

資源截圖

代碼片段和文件信息

package?com.hello.config;

import?com.hello.Interceptor.ExceptionIntoLogInterceptor;
import?com.hello.Model._MappingKit;
import?com.hello.Route.WebRoute;
import?com.jfinal.config.Constants;
import?com.jfinal.config.Handlers;
import?com.jfinal.config.Interceptors;
import?com.jfinal.config.JFinalConfig;
import?com.jfinal.config.Plugins;
import?com.jfinal.config.Routes;
import?com.jfinal.json.JacksonFactory;
import?com.jfinal.kit.PathKit;
import?com.jfinal.kit.PropKit;
import?com.jfinal.log.Log4jLogFactory;
import?com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import?com.jfinal.plugin.druid.DruidPlugin;
import?com.jfinal.template.Engine;

public?class?configuration?extends?JFinalConfig?{

@Override
public?void?configConstant(Constants?me)?{
//?PropKit?讀取工具,use方法可以獲取到指定文件
PropKit.use(“com/hello/config/jdbc.properties“);
//?是否開啟開發者模式
me.setDevMode(PropKit.getBoolean(“devMode“));
//?設置字符集
me.setEncoding(“UTF-8“);
//?設置Json格式
me.setJsonFactory(new?JacksonFactory());
me.setJsonDatePattern(“yyyy-MM-dd“);
//?設置上傳下載的默認路徑
me.setbaseUploadPath(PathKit.getWebRootPath()?+?“/upload“);
//?這個是設置日志工廠
me.setLogFactory(new?Log4jLogFactory());

}

//?路由分包
public?void?configRoute(Routes?me)?{
me.add(new?WebRoute());
}

//?配置前端模板引擎
public?void?configEngine(Engine?me)?{
me.addSharedFunction(“/common/_layout.html“);
}

//?啟動數據庫插件
public?static?DruidPlugin?createDruidPlugin()?{
return?new?DruidPlugin(PropKit.get(“jdbc_url“)?PropKit.get(“jdbc_username“)
PropKit.get(“jdbc_password“).trim());
}

//?配置數據庫插件?啟動Model和DB+Record
public?void?configPlugin(Plugins?me)?{
DruidPlugin?druidPlugin?=?new?DruidPlugin(PropKit.get(“jdbc_url“)?PropKit.get(“jdbc_username“)
PropKit.get(“jdbc_password“).trim());
me.add(druidPlugin);

ActiveRecordPlugin?arp?=?new?ActiveRecordPlugin(druidPlugin);
arp.setbaseSqlTemplatePath(PathKit.getRootClassPath());
//?arp.addSqlTemplate(“hello.sql“);
//?在控制臺打印所有的數據庫操作語句
arp.setShowSql(true);
//?所有映射在?MappingKit?中自動化搞定
_MappingKit.mapping(arp);
me.add(arp);

}

@Override
public?void?configInterceptor(Interceptors?interceptors)?{
interceptors.addGlobalActionInterceptor(new?ExceptionIntoLogInterceptor());
}

public?void?configHandler(Handlers?me)?{

}

public?void?afterJFinalStart()?{
}

public?void?beforeJFinalStop()?{
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-02?23:25??hello\
?????文件?????????773??2018-06-02?13:10??hello\.classpath
?????文件????????1081??2018-06-02?09:45??hello\.project
?????目錄???????????0??2018-06-02?23:25??hello\.settings\
?????文件?????????639??2018-06-02?09:35??hello\.settings\.jsdtscope
?????文件?????????430??2018-06-02?09:35??hello\.settings\org.eclipse.jdt.core.prefs
?????文件??????????90??2018-06-02?09:35??hello\.settings\org.eclipse.m2e.core.prefs
?????文件?????????567??2018-06-02?10:34??hello\.settings\org.eclipse.wst.common.component
?????文件?????????252??2018-06-02?09:35??hello\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2018-06-02?09:35??hello\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2018-06-02?09:35??hello\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????????50??2018-06-02?09:35??hello\.settings\org.eclipse.wst.validation.prefs
?????文件???????48349??2018-06-03?00:51??hello\myapp.log
?????文件????????4684??2018-06-02?11:00??hello\pom.xml
?????目錄???????????0??2018-06-02?23:25??hello\src\
?????目錄???????????0??2018-06-02?23:25??hello\src\main\
?????目錄???????????0??2018-06-02?23:25??hello\src\main\java\
?????目錄???????????0??2018-06-02?23:25??hello\src\main\java\com\
?????目錄???????????0??2018-06-02?23:25??hello\src\main\java\com\hello\
?????目錄???????????0??2018-06-02?23:25??hello\src\main\java\com\hello\Interceptor\
?????文件????????1594??2018-06-02?10:31??hello\src\main\java\com\hello\Interceptor\ExceptionIntoLogInterceptor.java
?????文件????????2512??2018-06-02?23:31??hello\src\main\java\com\hello\Interceptor\WebInterceptor.java
?????目錄???????????0??2018-06-02?23:25??hello\src\main\java\com\hello\Model\
?????文件?????????220??2018-06-02?11:03??hello\src\main\java\com\hello\Model\User.java
?????文件?????????471??2018-06-02?11:03??hello\src\main\java\com\hello\Model\_MappingKit.java
?????目錄???????????0??2018-06-02?23:25??hello\src\main\java\com\hello\Model\base\
?????文件?????????836??2018-06-02?11:03??hello\src\main\java\com\hello\Model\base\baseUser.java
?????目錄???????????0??2018-06-02?23:25??hello\src\main\java\com\hello\Route\
?????文件?????????499??2018-06-02?11:39??hello\src\main\java\com\hello\Route\WebRoute.java
?????目錄???????????0??2018-06-02?23:25??hello\src\main\java\com\hello\Service\
?????文件?????????848??2018-06-02?11:28??hello\src\main\java\com\hello\Service\UserService.java
............此處省略81個文件信息

評論

共有 條評論