Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MCMS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
MCMS
Commits
5fff6bd8
Commit
5fff6bd8
authored
May 10, 2016
by
ms-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件优化
parent
0abfab6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
28 deletions
+2
-28
src/main/resources/config.properties
src/main/resources/config.properties
+1
-8
src/main/resources/log4j.properties
src/main/resources/log4j.properties
+1
-1
src/main/resources/spring-shiro.xml
src/main/resources/spring-shiro.xml
+0
-19
No files found.
src/main/resources/config.properties
View file @
5fff6bd8
...
...
@@ -2,11 +2,4 @@ driverClassName=com.mysql.jdbc.Driver
validationQuery
=
SELECT 1
jdbc_url
=
jdbc
\:
mysql
\:
//localhost
\:
3306/db-mcms-open?useUnicode
\=
true&characterEncoding
\=
UTF-8&zeroDateTimeBehavior
\=
convertToNull
jdbc_username
=
root
jdbc_password
=
root
sessionInfoName
=
sessionInfo
uploadFieldName
=
filedata
uploadFileMaxSize
=
20971520
uploadFileExts
=
txt,rar,zip,doc,docx,xls,xlsx,jpg,jpeg,gif,png,swf,wmv,avi,wma,mp3,mid
uploadDirectory
=
attached
\ No newline at end of file
jdbc_password
=
root
\ No newline at end of file
src/main/resources/log4j.properties
View file @
5fff6bd8
...
...
@@ -7,7 +7,7 @@ log4j.logger.org.springframework=ERROR
# Console Appender#
###################
log4j.appender.CONSOLE
=
org.apache.log4j.ConsoleAppender
log4j.appender.Threshold
=
INFO
log4j.appender.
CONSOLE.
Threshold
=
INFO
log4j.appender.CONSOLE.Target
=
System.out
log4j.appender.CONSOLE.layout
=
org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern
=
[
\u
94ed
\u
98deMS %d{yyy-MM-dd HH:mm:ss,SSS}](%p) - %c - (%F:%L) %m %n
...
...
src/main/resources/spring-shiro.xml
View file @
5fff6bd8
...
...
@@ -42,25 +42,6 @@
<!-- Shiro Filter -->
<bean
id=
"baseAuthFilter"
class=
"org.apache.shiro.spring.web.ShiroFilterFactoryBean"
>
<property
name=
"securityManager"
ref=
"securityManager"
/>
<property
name=
"loginUrl"
value=
"/ms/login.do"
/>
<!-- <property name="successUrl" value="/view/index.html" />
<property name="unauthorizedUrl" value="/error/noperms.jsp" /> -->
<!-- 过滤器名称 过滤器类 描述 anon org.apache.shiro.web.filter.authc.AnonymousFilter
匿名过滤器 authc org.apache.shiro.web.filter.authc.FormAuthenticationFilter 如果继续操作,需要做对应的表单验证否则不能通过
authcBasic org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter
基本http验证过滤,如果不通过,跳转屋登录页面 logout org.apache.shiro.web.filter.authc.LogoutFilter
登录退出过滤器 noSessionCreation org.apache.shiro.web.filter.session.NoSessionCreationFilter
没有session创建过滤器 perms org.apache.shiro.web.filter.authz.PermissionsAuthorizationFilter
权限过滤器 port org.apache.shiro.web.filter.authz.PortFilter 端口过滤器,可以设置是否是指定端口如果不是跳转到登录页面
rest org.apache.shiro.web.filter.authz.HttpMethodPermissionFilter http方法过滤器,可以指定如post不能进行访问等
roles org.apache.shiro.web.filter.authz.RolesAuthorizationFilter 角色过滤器,判断当前用户是否指定角色
ssl org.apache.shiro.web.filter.authz.SslFilter 请求需要通过ssl,如果不是跳转回登录页 user
org.apache.shiro.web.filter.authc.UserFilter 如果访问一个已知用户,比如记住我功能,走这个过滤器 -->
<property
name=
"filterChainDefinitions"
>
<value>
/manager/**=authc,perms
</value>
</property>
</bean>
</beans>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment