Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
御承扬
Campus
提交
08e8c582
C
Campus
项目概览
御承扬
/
Campus
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Campus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
08e8c582
编写于
1月 16, 2021
作者:
7
7wc98#14
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
commit
上级
dab5e4e2
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
47 addition
and
149 deletion
+47
-149
src/main/java/com/pyc/campus/controller/WebController.java
src/main/java/com/pyc/campus/controller/WebController.java
+2
-105
src/main/resources/templates/page/AddFriend.html
src/main/resources/templates/page/AddFriend.html
+2
-2
src/main/resources/templates/page/AdminPage.html
src/main/resources/templates/page/AdminPage.html
+3
-3
src/main/resources/templates/page/BrowseFriendInfo.html
src/main/resources/templates/page/BrowseFriendInfo.html
+2
-2
src/main/resources/templates/page/BrowseNews.html
src/main/resources/templates/page/BrowseNews.html
+2
-2
src/main/resources/templates/page/BrowserQuestion.html
src/main/resources/templates/page/BrowserQuestion.html
+2
-2
src/main/resources/templates/page/English.html
src/main/resources/templates/page/English.html
+2
-2
src/main/resources/templates/page/FeedBack.html
src/main/resources/templates/page/FeedBack.html
+2
-2
src/main/resources/templates/page/Help.html
src/main/resources/templates/page/Help.html
+2
-2
src/main/resources/templates/page/Home.html
src/main/resources/templates/page/Home.html
+2
-2
src/main/resources/templates/page/ImportGrade.html
src/main/resources/templates/page/ImportGrade.html
+2
-2
src/main/resources/templates/page/Learn.html
src/main/resources/templates/page/Learn.html
+2
-2
src/main/resources/templates/page/ManageUser.html
src/main/resources/templates/page/ManageUser.html
+3
-2
src/main/resources/templates/page/Math.html
src/main/resources/templates/page/Math.html
+2
-2
src/main/resources/templates/page/MyFriend.html
src/main/resources/templates/page/MyFriend.html
+2
-2
src/main/resources/templates/page/Philosophy.html
src/main/resources/templates/page/Philosophy.html
+2
-2
src/main/resources/templates/page/PublishNews.html
src/main/resources/templates/page/PublishNews.html
+2
-2
src/main/resources/templates/page/PublishQuestion.html
src/main/resources/templates/page/PublishQuestion.html
+2
-2
src/main/resources/templates/page/QueryGrade.html
src/main/resources/templates/page/QueryGrade.html
+2
-2
src/main/resources/templates/page/UpQuestion.html
src/main/resources/templates/page/UpQuestion.html
+2
-2
src/main/resources/templates/page/UserCenter.html
src/main/resources/templates/page/UserCenter.html
+3
-3
src/main/resources/templates/page/VerifyFriend.html
src/main/resources/templates/page/VerifyFriend.html
+2
-2
未找到文件。
src/main/java/com/pyc/campus/controller/WebController.java
浏览文件 @
08e8c582
...
...
@@ -56,15 +56,10 @@ public class WebController {
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/Home"
;
}
@RequestMapping
(
"/learn"
)
public
String
learn
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/Learn"
;
}
@RequestMapping
(
"/userCenter"
)
...
...
@@ -80,44 +75,24 @@ public class WebController {
@RequestMapping
(
"/toAddFriend"
)
public
String
toAddFriend
(
Model
model
,
HttpSession
session
)
{
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
Msg
msg
=
new
Msg
(
"注意"
,
"添加好友时请输入对方的学号,而不是姓名!"
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/AddFriend"
;
}
@RequestMapping
(
"/toHelp"
)
public
String
toHelp
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/Help"
;
}
@RequestMapping
(
"/toEnglish"
)
public
String
toEnglish
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/English"
;
}
@RequestMapping
(
"/toMath"
)
public
String
toMath
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/Math"
;
}
@RequestMapping
(
"/toPhilosophy"
)
public
String
toPhilosophy
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/Philosophy"
;
}
@RequestMapping
(
"/toMyFriend"
)
...
...
@@ -128,7 +103,6 @@ public class WebController {
List
<
FriendList
>
tempFl
=
friendListRepository
.
toNameIsFalseByFromName
(
currentStudentId
);
List
<
FriendList
>
Fl
=
friendListRepository
.
findMyFriendsByFromName
(
currentStudentId
);
List
<
FriendList
>
Fl1
=
friendListRepository
.
findMyFriendsByToName
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
model
.
addAttribute
(
"tempFl"
,
tempFl
);
model
.
addAttribute
(
"Fl"
,
Fl
);
model
.
addAttribute
(
"Fl1"
,
Fl1
);
...
...
@@ -144,19 +118,14 @@ public class WebController {
studentRepository
.
setOnlineStatus
(
onlineStatus
,
currentStudentId
);
Msg
msg
=
new
Msg
(
""
,
""
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/UserCenter"
;
}
@RequestMapping
(
"/toBrowseFriendInfo"
)
public
String
toBrowseFriendInfo
(
Model
model
,
HttpSession
session
,
@Param
(
"toName"
)
String
toName
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
Student
stu
=
studentRepository
.
findNameByStudentID
(
toName
);
Msg
msg
=
new
Msg
(
""
,
""
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
model
.
addAttribute
(
"stu"
,
stu
);
return
"page/BrowseFriendInfo"
;
}
...
...
@@ -165,21 +134,16 @@ public class WebController {
@Param
(
"fromName"
)
String
fromName
,
@Param
(
"toName"
)
String
toName
){
Student
stu
=
studentRepository
.
findAllByStudentID
(
toName
);
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
if
(
stu
==
null
)
{
Msg
msg
=
new
Msg
(
"错误"
,
"你所添加的用户不存在,请检查输入是否错误"
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/AddFriend"
;
}
FriendList
fl
=
new
FriendList
(
fromName
,
toName
);
friendListRepository
.
save
(
fl
);
Msg
msg
=
new
Msg
(
"OK"
,
"请耐心等待对方通过申请"
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
return
"page/AddFriend"
;
}
@RequestMapping
(
"/toVerifyFriend"
)
...
...
@@ -191,7 +155,6 @@ public class WebController {
int
len
=
fl
.
size
();
Msg
msg
=
new
Msg
(
"待验证好友申请数量:"
,
"一共"
+
len
+
"个"
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
model
.
addAttribute
(
"fl"
,
fl
);
return
"page/VerifyFriend"
;
}
...
...
@@ -207,13 +170,11 @@ public class WebController {
if
(
result
!=
0
){
Msg
msg
=
new
Msg
(
"待验证好友申请数量:"
,
"一共"
+
len
+
"个"
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
model
.
addAttribute
(
"fl"
,
fl
);
return
"page/VerifyFriend"
;
}
Msg
msg
=
new
Msg
(
"错误:"
,
"请检查输入的学号"
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
model
.
addAttribute
(
"curUse"
,
s
);
model
.
addAttribute
(
"fl"
,
fl
);
return
"page/VerifyFriend"
;
}
...
...
@@ -413,10 +374,6 @@ public class WebController {
{
System
.
out
.
println
(
"更新失败!"
);
}
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
Student
>
students
=
studentRepository
.
findAll
();
model
.
addAttribute
(
"students"
,
students
);
return
"page/ManageUser"
;
...
...
@@ -435,10 +392,6 @@ public class WebController {
{
System
.
out
.
println
(
"更新失败!"
);
}
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
Student
>
students
=
studentRepository
.
findAll
();
model
.
addAttribute
(
"students"
,
students
);
return
"page/ManageUser"
;
...
...
@@ -455,10 +408,6 @@ public class WebController {
@RequestMapping
(
"/news"
)
public
String
news
(
Model
model
,
HttpSession
session
)
{
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
News
>
news
=
newsRepository
.
findAll
();
model
.
addAttribute
(
"news"
,
news
);
return
"page/BrowseNews"
;
...
...
@@ -504,8 +453,6 @@ public class WebController {
public
String
toQueryGrade
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
Grade
>
gradeList
=
gradeRepository
.
findAllByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"gradeItems"
,
gradeList
);
return
"page/QueryGrade"
;
...
...
@@ -515,16 +462,14 @@ public class WebController {
public
String
queryByTerm
(
Model
model
,
HttpSession
session
,
@Param
(
"term"
)
String
term
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
Grade
>
gradeLists
=
gradeRepository
.
findAllByTermAndStudentID
(
term
,
currentStudentId
);
model
.
addAttribute
(
"gradeItems"
,
gradeLists
);
return
"page/QueryGrade"
;
}
@RequestMapping
(
"/test"
)
/*
@RequestMapping("/test")
public List<Grade> test(@Param("stuId")String studentId) {
return gradeRepository.findAllByStudentID(studentId);
}
}
*/
@RequestMapping
(
"/toImportGrade"
)
public
String
toImportGrade
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
...
...
@@ -558,20 +503,12 @@ public class WebController {
g
.
setName
(
name
);
g
.
setStudentID
(
studentID
);
gradeRepository
.
save
(
g
);
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
Msg
msg
=
new
Msg
(
"提示"
,
"导入成功"
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
return
"page/ImportGrade"
;
}
@RequestMapping
(
"/toUpQuestion"
)
public
String
toUpQuestion
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
Msg
msg
=
new
Msg
(
""
,
""
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
return
"page/UpQuestion"
;
...
...
@@ -581,10 +518,6 @@ public class WebController {
public
String
upQuestion
(
Model
model
,
HttpSession
session
,
@Param
(
"mail"
)
String
mail
,
@Param
(
"name"
)
String
name
,
@Param
(
"title"
)
String
title
,
@Param
(
"content"
)
String
content
,
@Param
(
"reward"
)
String
reward
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
try
{
MailConfig
mailConfig
=
new
MailConfig
();
JavaMailSender
sender
=
mailConfig
.
getMailSender
();
...
...
@@ -609,10 +542,6 @@ public class WebController {
public
String
feedback
(
Model
model
,
HttpSession
session
,
@Param
(
"mail"
)
String
mail
,
@Param
(
"name"
)
String
name
,
@Param
(
"title"
)
String
title
,
@Param
(
"content"
)
String
content
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
try
{
MailConfig
mailConfig
=
new
MailConfig
();
JavaMailSender
sender
=
mailConfig
.
getMailSender
();
...
...
@@ -635,20 +564,12 @@ public class WebController {
}
@RequestMapping
(
"/toFeedBack"
)
public
String
toFeedBack
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
Msg
msg
=
new
Msg
(
""
,
""
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
return
"page/FeedBack"
;
}
@RequestMapping
(
"/toPublishQuestion"
)
public
String
toPublishQuestion
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
Msg
msg
=
new
Msg
(
""
,
""
,
""
);
model
.
addAttribute
(
"msg"
,
msg
);
return
"page/PublishQuestion"
;
...
...
@@ -658,10 +579,6 @@ public class WebController {
@Param
(
"mail"
)
String
mail
,
@RequestParam
(
value
=
"PublisherName"
,
required
=
false
)
String
publisher
,
@RequestParam
(
value
=
"QuestionType"
,
required
=
false
)
String
type
,
@Param
(
"content"
)
String
content
,
@Param
(
"reward"
)
String
reward
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
try
{
Question
question
=
new
Question
();
question
.
setPublisher
(
publisher
);
...
...
@@ -684,10 +601,6 @@ public class WebController {
final
QuestionRepository
questionRepository
;
@RequestMapping
(
"/toBrowserQuestion"
)
public
String
toBrowserQuestion
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
Question
>
questions
=
questionRepository
.
findAll
();
model
.
addAttribute
(
"questions"
,
questions
);
return
"page/BrowserQuestion"
;
...
...
@@ -695,20 +608,12 @@ public class WebController {
@RequestMapping
(
"/queryByQuestionType"
)
public
String
queryByQuestionType
(
Model
model
,
HttpSession
session
,
@RequestParam
(
value
=
"TypeOfQuestion"
,
required
=
false
)
String
type
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
Question
>
questions
=
questionRepository
.
findAllByType
(
type
);
model
.
addAttribute
(
"questions"
,
questions
);
return
"page/BrowserQuestion"
;
}
@RequestMapping
(
"/manageUser"
)
public
String
findUserExceptCurUser
(
Model
model
,
HttpSession
session
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
Student
>
students
=
studentRepository
.
findAll
();
model
.
addAttribute
(
"students"
,
students
);
return
"page/ManageUser"
;
...
...
@@ -716,20 +621,12 @@ public class WebController {
@RequestMapping
(
"/findUserByStudentIDLike"
)
public
String
findUserByStudentIDLike
(
Model
model
,
HttpSession
session
,
@RequestParam
(
value
=
"ClassPrefix"
,
required
=
false
)
String
classPrefix
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
List
<
Student
>
students
=
studentRepository
.
query01
(
classPrefix
+
'%'
);
model
.
addAttribute
(
"students"
,
students
);
return
"page/ManageUser"
;
}
@RequestMapping
(
"/delStuByStuId"
)
public
String
delStuByStuId
(
Model
model
,
HttpSession
session
,
@RequestParam
(
value
=
"studentId"
,
required
=
false
)
String
stuId
){
SecurityContextImpl
securityContext
=
(
SecurityContextImpl
)
session
.
getAttribute
(
"SPRING_SECURITY_CONTEXT"
);
String
currentStudentId
=
((
UserDetails
)
securityContext
.
getAuthentication
().
getPrincipal
()).
getUsername
();
Student
s
=
studentRepository
.
findNameByStudentID
(
currentStudentId
);
model
.
addAttribute
(
"curUse"
,
s
);
studentRepository
.
delByStudentID
(
stuId
);
sysUserRepository
.
delByUsername
(
stuId
);
List
<
Student
>
students
=
studentRepository
.
findAll
();
...
...
src/main/resources/templates/page/AddFriend.html
浏览文件 @
08e8c582
...
...
@@ -108,10 +108,10 @@
<li><a
href=
"/toPhilosophy"
>
哲学
</a></li>
</ul>
</li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/AdminPage.html
浏览文件 @
08e8c582
...
...
@@ -103,10 +103,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"#"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
@@ -117,7 +117,7 @@
<div
class=
"col-sm-4"
>
<h2>
网站管理菜单
</h2>
<ul
class=
"nav nav-pills nav-stacked"
>
<li
class=
"active"
><a
href=
"/publishNews"
>
新闻发布
</a>
</li>
<li><a
href=
"/publishNews"
>
新闻发布
</a>
</li>
<li><a
href=
"/toImportGrade"
>
成绩导入
</a>
</li>
<li><a
href=
"/toPublishQuestion"
>
发布悬赏问题
</a>
</li>
<li><a
href=
"/manageUser"
>
管理用户
</a>
</li>
...
...
src/main/resources/templates/page/BrowseFriendInfo.html
浏览文件 @
08e8c582
...
...
@@ -108,10 +108,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/BrowseNews.html
浏览文件 @
08e8c582
...
...
@@ -105,9 +105,9 @@
</ul>
</li>
<li><a
href=
"#"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
</div>
...
...
src/main/resources/templates/page/BrowserQuestion.html
浏览文件 @
08e8c582
...
...
@@ -103,10 +103,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/English.html
浏览文件 @
08e8c582
...
...
@@ -94,9 +94,9 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
</div>
...
...
src/main/resources/templates/page/FeedBack.html
浏览文件 @
08e8c582
...
...
@@ -105,10 +105,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/Help.html
浏览文件 @
08e8c582
...
...
@@ -105,10 +105,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/Home.html
浏览文件 @
08e8c582
...
...
@@ -135,9 +135,9 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
</div>
...
...
src/main/resources/templates/page/ImportGrade.html
浏览文件 @
08e8c582
...
...
@@ -111,10 +111,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/Learn.html
浏览文件 @
08e8c582
...
...
@@ -94,9 +94,9 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
</div>
...
...
src/main/resources/templates/page/ManageUser.html
浏览文件 @
08e8c582
...
...
@@ -108,10 +108,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
@@ -189,6 +189,7 @@
</div>
<button
type=
"submit"
class=
"btn btn-danger"
>
解冻
</button>
</form>
</div>
</div>
</div>
...
...
src/main/resources/templates/page/Math.html
浏览文件 @
08e8c582
...
...
@@ -94,9 +94,9 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
</div>
...
...
src/main/resources/templates/page/MyFriend.html
浏览文件 @
08e8c582
...
...
@@ -112,10 +112,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/Philosophy.html
浏览文件 @
08e8c582
...
...
@@ -94,9 +94,9 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a></li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
</div>
...
...
src/main/resources/templates/page/PublishNews.html
浏览文件 @
08e8c582
...
...
@@ -105,10 +105,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"#"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/PublishQuestion.html
浏览文件 @
08e8c582
...
...
@@ -111,10 +111,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/QueryGrade.html
浏览文件 @
08e8c582
...
...
@@ -107,10 +107,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/UpQuestion.html
浏览文件 @
08e8c582
...
...
@@ -111,10 +111,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
src/main/resources/templates/page/UserCenter.html
浏览文件 @
08e8c582
...
...
@@ -108,10 +108,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"#"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"#"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"#"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"#"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
@@ -135,7 +135,7 @@
</ul>
<hr
class=
"hidden-sm hidden-md hidden-lg"
>
</div>
<div
class=
"col-sm-8"
style=
"height: 800px;"
>
<div
class=
"col-sm-8"
>
<div
class=
"starter-template"
>
<h1
th:text=
"${msg.title}"
></h1>
<p
class=
"bg-primary"
th:text=
"${msg.content}"
></p>
...
...
src/main/resources/templates/page/VerifyFriend.html
浏览文件 @
08e8c582
...
...
@@ -110,10 +110,10 @@
</ul>
</li>
<li><a
href=
"/news"
>
校内新闻
</a></li>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_USER')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/admin"
>
网站管理
</a></li>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
th:text=
"${curUse.getName()}"
>
</a>
<li
sec:authorize=
"hasRole('ROLE_ADMIN')"
><a
href=
"/userCenter"
style=
"color: red"
>
用户中心
</a>
</li>
<li><a
href=
"/toHelp"
>
帮助中心
</a>
</li>
</ul>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录