Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
java镜像
Smart Sample
提交
794cbf2e
S
Smart Sample
项目概览
后端镜像
/
java镜像
/
Smart Sample
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Smart Sample
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
794cbf2e
编写于
6月 22, 2014
作者:
黄
黄勇
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【I】升级到 Smart Framework 2.3.1、Smart Security Plugin 1.0.1
上级
f970a940
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
pom.xml
pom.xml
+2
-2
src/main/java/org/smart4j/sample/aspect/ActionAspect.java
src/main/java/org/smart4j/sample/aspect/ActionAspect.java
+1
-1
src/main/java/org/smart4j/sample/entity/Product.java
src/main/java/org/smart4j/sample/entity/Product.java
+2
-0
src/main/resources/log4j.properties
src/main/resources/log4j.properties
+1
-3
src/main/resources/smart.properties
src/main/resources/smart.properties
+1
-1
src/main/webapp/WEB-INF/jsp/login.jsp
src/main/webapp/WEB-INF/jsp/login.jsp
+1
-1
未找到文件。
pom.xml
浏览文件 @
794cbf2e
...
...
@@ -17,9 +17,9 @@
<jsp.version>
2.2
</jsp.version>
<jstl.version>
1.2
</jstl.version>
<mysql.version>
5.1.25
</mysql.version>
<smart-framework.version>
2.3
</smart-framework.version>
<smart-framework.version>
2.3
.1
</smart-framework.version>
<smart-plugin-i18n.version>
1.0
</smart-plugin-i18n.version>
<smart-plugin-security.version>
1.0
</smart-plugin-security.version>
<smart-plugin-security.version>
1.0
.1
</smart-plugin-security.version>
<smart-plugin-cache.version>
1.0
</smart-plugin-cache.version>
<smart-plugin-soap.version>
1.0
</smart-plugin-soap.version>
<smart-plugin-rest.version>
1.0
</smart-plugin-rest.version>
...
...
src/main/java/org/smart4j/sample/aspect/ActionAspect.java
浏览文件 @
794cbf2e
...
...
@@ -22,7 +22,7 @@ public class ActionAspect extends AspectProxy {
@Override
public
void
after
(
Class
<?>
cls
,
Method
method
,
Object
[]
params
,
Object
result
)
throws
Throwable
{
logger
.
info
(
"time: "
+
(
System
.
currentTimeMillis
()
-
begin
)
+
"ms"
);
logger
.
debug
(
"time: "
+
(
System
.
currentTimeMillis
()
-
begin
)
+
"ms"
);
logger
.
debug
(
"----------- end -----------"
);
}
}
src/main/java/org/smart4j/sample/entity/Product.java
浏览文件 @
794cbf2e
package
org.smart4j.sample.entity
;
import
org.smart4j.framework.orm.annotation.Column
;
import
org.smart4j.framework.orm.annotation.Entity
;
@Entity
...
...
@@ -9,6 +10,7 @@ public class Product {
private
long
productTypeId
;
@Column
(
"product_name"
)
private
String
name
;
private
String
code
;
...
...
src/main/resources/log4j.properties
浏览文件 @
794cbf2e
...
...
@@ -13,6 +13,4 @@ log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern
=
%d{HH:mm:ss,SSS} %p %c (%L) - %m%n
log4j.logger.org.apache
=
ERROR
log4j.logger.org.smart4j.framework
=
DEBUG
log4j.logger.org.smart4j.plugin
=
DEBUG
log4j.logger.org.smart4j.sample
=
DEBUG
log4j.logger.org.smart4j
=
DEBUG
src/main/resources/smart.properties
浏览文件 @
794cbf2e
...
...
@@ -14,6 +14,6 @@ smart.plugin.i18n.reloadable=true
smart.plugin.security.realms
=
custom
smart.plugin.security.custom.class
=
org.smart4j.sample.CustomSmartSecurity
smart.plugin.security.cache
=
true
smart.plugin.security.cache
able
=
true
sample.upload_path
=
/www/upload/
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/login.jsp
浏览文件 @
794cbf2e
...
...
@@ -12,7 +12,7 @@
<body>
<security:user>
<c:redirect
context=
"
${
BASE
}
"
url=
"/products"
/>
<c:redirect
context=
"
/
${BASE}"
url=
"/products"
/>
</security:user>
<div
id=
"header"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录