Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8accb5f

Browse files
update jfinal version to 3.3
1 parent 171eabb commit 8accb5f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# jfinal-bootstrap-table demo
22
## 技术栈/technology stack
3-
* jfinal2.2
3+
* jfinal3.3
44
* poi3
55
* ehcache
66
* 自定义标签开发

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</developers>
1818
<properties>
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20-
<jfinal.version>2.2</jfinal.version>
20+
<jfinal.version>3.3</jfinal.version>
2121
</properties>
2222
<!-- 引用parent依赖 -->
2323
<!-- <parent> <groupId>cn.com.ttblog.app</groupId> <artifactId>app</artifactId>

‎src/main/java/cn/com/ttblog/jfinal_bootstrap_table/config/AppConfig.java‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
import com.jfinal.plugin.druid.IDruidStatViewAuth;
2828
import com.jfinal.plugin.ehcache.EhCachePlugin;
2929
import com.jfinal.render.ViewType;
30+
import com.jfinal.template.Engine;
31+
import org.slf4j.Logger;
32+
import org.slf4j.LoggerFactory;
3033

3134
/**
3235
* jfinal配置文件
@@ -36,6 +39,8 @@
3639
*/
3740
public class AppConfig extends JFinalConfig {
3841

42+
private static final Logger LOGGER= LoggerFactory.getLogger(AppConfig.class);
43+
3944
/**
4045
* 启动完回调
4146
*/
@@ -70,7 +75,7 @@ public void configConstant(Constants me) {
7075
*/
7176
me.setBaseUploadPath("upload");
7277
me.setBaseDownloadPath("export");
73-
me.setViewType(ViewType.OTHER);
78+
me.setViewType(ViewType.FREE_MARKER);
7479
me.setError403View("/403.html");
7580
// 404错误是web应用报出的,只能依靠web.xml里面来配置
7681
me.setError404View("/404.html");
@@ -86,6 +91,11 @@ public void configRoute(Routes me) {
8691
me.add(new AdminRoutes()); // 后端路由
8792
}
8893

94+
@Override
95+
public void configEngine(Engine engine) {
96+
LOGGER.info("jfinal engine config:{}",engine);
97+
}
98+
8999
/**
90100
* 插件配置
91101
*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /