Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
java镜像
Springside4
提交
66a49ae8
S
Springside4
项目概览
后端镜像
/
java镜像
/
Springside4
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Springside4
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
66a49ae8
编写于
9月 03, 2012
作者:
C
Calvin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
clean code
上级
71f7bb3c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
18 addition
and
15 deletion
+18
-15
README.txt
README.txt
+2
-3
examples/quickstart/src/main/java/org/springside/examples/quickstart/rest/TaskRestController.java
...ringside/examples/quickstart/rest/TaskRestController.java
+0
-1
examples/showcase/src/main/java/org/springside/examples/showcase/web/UserController.java
.../org/springside/examples/showcase/web/UserController.java
+4
-1
examples/showcase/src/main/webapp/WEB-INF/views/index.jsp
examples/showcase/src/main/webapp/WEB-INF/views/index.jsp
+1
-1
examples/showcase/src/main/webapp/WEB-INF/views/login.jsp
examples/showcase/src/main/webapp/WEB-INF/views/login.jsp
+3
-1
modules/parent/pom.xml
modules/parent/pom.xml
+8
-8
未找到文件。
README.txt
浏览文件 @
66a49ae8
...
...
@@ -2,10 +2,9 @@
It shows the mainstream technologies and pragmatic practice in JavaEE world.
It has
3
major examples:
It has
2
major examples:
1. Mini-web focus on the minimal CRUD web application
2. Mini-service focus on the SOAP and REST web service.
1. Quickstart a minimal CRUD Todo-List web application.
3. Showcase demonstrate many other interesting technologies.
-------------------------------
...
...
examples/quickstart/src/main/java/org/springside/examples/quickstart/rest/TaskRestController.java
浏览文件 @
66a49ae8
...
...
@@ -53,7 +53,6 @@ public class TaskRestController {
return
new
ResponseEntity
(
HttpStatus
.
NOT_FOUND
);
}
return
new
ResponseEntity
(
task
,
HttpStatus
.
OK
);
}
@RequestMapping
(
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
...
...
examples/showcase/src/main/java/org/springside/examples/showcase/web/UserController.java
浏览文件 @
66a49ae8
...
...
@@ -58,6 +58,9 @@ public class UserController {
return
"account/userForm"
;
}
/**
* 演示自行绑定表单中的checkBox roleList到对象中.
*/
@RequiresPermissions
(
"user:edit"
)
@RequestMapping
(
value
=
"save/{userId}"
)
public
String
update
(
@Valid
@ModelAttribute
(
"user"
)
User
user
,
...
...
@@ -102,7 +105,7 @@ public class UserController {
}
/**
* 不自动绑定对象中的roleList属性,另行处理
* 不自动绑定对象中的roleList属性,另行处理
。
*/
@InitBinder
protected
void
initBinder
(
WebDataBinder
binder
)
{
...
...
examples/showcase/src/main/webapp/WEB-INF/views/index.jsp
浏览文件 @
66a49ae8
...
...
@@ -17,7 +17,7 @@
<ul
style=
"padding: 15px;"
>
<li>
CSS 大装修完毕。
</li>
<li>
CXF的SOAP WebService 与 MyBais从Mini-Service搬了过来
</li>
<li>
Shiro的
基于角色与权限的授权,与Jquery-Validate的高级使用
搬了过来
</li>
<li>
Shiro的
授权演示
搬了过来
</li>
</ul>
</body>
</html>
\ No newline at end of file
examples/showcase/src/main/webapp/WEB-INF/views/login.jsp
浏览文件 @
66a49ae8
...
...
@@ -13,7 +13,9 @@
<script>
$
(
document
).
ready
(
function
()
{
$
(
"
#loginForm
"
).
validate
();
$
(
"
#loginForm
"
).
validate
({
errorElement
:
"
span
"
});
});
</script>
</head>
...
...
modules/parent/pom.xml
浏览文件 @
66a49ae8
...
...
@@ -70,14 +70,14 @@
</snapshots>
</repository>
<repository>
<id>
spy
</id>
<name>
Spy Repository
</name>
<layout>
default
</layout>
<url>
http://files.couchbase.com/maven2/
</url>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
<repository>
<id>
spy
</id>
<name>
Spy Repository
</name>
<layout>
default
</layout>
<url>
http://files.couchbase.com/maven2/
</url>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</repository>
</repositories>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录