-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
201 changed files
with
47,625 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xmlns:task="http://www.springframework.org/schema/task" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context.xsd | ||
http://www.springframework.org/schema/task | ||
http://www.springframework.org/schema/task/spring-task.xsd"> | ||
|
||
<!-- 装载service --> | ||
<context:component-scan base-package="**.service" /> | ||
|
||
<!-- 装载自定义bean --> | ||
<context:component-scan base-package="**.*" use-default-filters="false"> | ||
<context:include-filter type="assignable" expression="com.vua.common.base.BaseInterface"></context:include-filter> | ||
</context:component-scan> | ||
|
||
<!-- 启动时初始化Spring上下文环境工具类 --> | ||
<bean id="springContextUtil" class="com.vua.common.util.SpringContextUtil"></bean> | ||
|
||
<!-- 启动任务注解 --> | ||
<task:annotation-driven /> | ||
<context:component-scan base-package="**.task" /> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
vua-upms/vua-upms-client/src/main/resources/vua-upms-client.properties
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
vua-upms/vua-upms-server/src/main/resources/applicationContext-threadpool.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> | ||
|
||
<!-- 线程池配置 --> | ||
<bean id="threadPoolTaskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> | ||
<!-- 线程池维护线程的最少数量 --> | ||
<property name="corePoolSize" value="50"/> | ||
<!-- 线程池维护线程的最大数量,默认为Integer.MAX_VALUE --> | ||
<property name="maxPoolSize" value="1000"/> | ||
<!-- 线程池所使用的缓冲队列,一般需要设置值>=notifyScheduledMainExecutor.maxNum;默认为Integer.MAX_VALUE --> | ||
<property name="queueCapacity" value="20000"/> | ||
<!-- 线程池维护线程所允许的空闲时间,默认为60s --> | ||
<property name="keepAliveSeconds" value="300"/> | ||
<!-- 线程池对拒绝任务(无线程可用)的处理策略,目前只支持AbortPolicy、CallerRunsPolicy;默认为后者 --> | ||
<property name="rejectedExecutionHandler"> | ||
<!-- AbortPolicy:直接抛出java.util.concurrent.RejectedExecutionException异常 --> | ||
<!-- CallerRunsPolicy:主线程直接执行该任务,执行完之后尝试添加下一个任务到线程池中,可以有效降低向线程池内添加任务的速度 --> | ||
<!-- DiscardOldestPolicy:抛弃旧的任务、暂不支持;会导致被丢弃的任务无法再次被执行 --> | ||
<!-- DiscardPolicy:抛弃当前任务、暂不支持;会导致被丢弃的任务无法再次被执行 --> | ||
<bean class="java.util.concurrent.ThreadPoolExecutor$CallerRunsPolicy"/> | ||
</property> | ||
</bean> | ||
|
||
</beans> |
4 changes: 4 additions & 0 deletions
4
vua-upms/vua-upms-server/src/main/resources/i18n/messages_en_US.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
403=Access forbidden! | ||
404=Page not found! | ||
500=Internal server error! | ||
error=Server error! |
4 changes: 4 additions & 0 deletions
4
vua-upms/vua-upms-server/src/main/resources/i18n/messages_zh_CN.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
403=\u6CA1\u6709\u6743\u9650\uFF01 | ||
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01 | ||
500=\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF01 | ||
error=\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF01 |
30 changes: 30 additions & 0 deletions
30
vua-upms/vua-upms-server/src/main/resources/log4j.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#off/fatal/error/warn/info/debug/all | ||
log4j.debug=false | ||
log4j.rootLogger=info,stdout,log,errorlog | ||
|
||
# Console | ||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.Target = System.out | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n | ||
|
||
### Log ### | ||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.log.File = ../logs/zheng-upms-server.log | ||
log4j.appender.log.Append = true | ||
log4j.appender.log.Threshold = DEBUG | ||
log4j.appender.log.DatePattern='.'yyyy-MM-dd | ||
log4j.appender.log.layout = org.apache.log4j.PatternLayout | ||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n | ||
|
||
### Error ### | ||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.errorlog.File = ../logs/zheng-upms-server.error.log | ||
log4j.appender.errorlog.Append = true | ||
log4j.appender.errorlog.Threshold = ERROR | ||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd | ||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout | ||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n | ||
|
||
#Spring logging configuration | ||
log4j.category.org.springframework = warn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
master.redis.ip=127.0.0.1 | ||
master.redis.port=6379 | ||
master.redis.password='' | ||
master.redis.max_active=500 | ||
master.redis.max_idle=5 | ||
master.redis.max_wait=10000 | ||
master.redis.timeout=10000 |
33 changes: 33 additions & 0 deletions
33
vua-upms/vua-upms-server/src/main/resources/shiro-ehcache.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ehcache name="shirocache"> | ||
|
||
<diskStore path="java.io.tmpdir/vua-upms-server/shiro-ehcache"/> | ||
|
||
<cache name="authorizationCache" | ||
maxEntriesLocalHeap="2000" | ||
eternal="false" | ||
timeToIdleSeconds="3600" | ||
timeToLiveSeconds="0" | ||
overflowToDisk="false" | ||
statistics="true"> | ||
</cache> | ||
|
||
<cache name="authenticationCache" | ||
maxEntriesLocalHeap="2000" | ||
eternal="false" | ||
timeToIdleSeconds="3600" | ||
timeToLiveSeconds="0" | ||
overflowToDisk="false" | ||
statistics="true"> | ||
</cache> | ||
|
||
<cache name="shiro-activeSessionCache" | ||
maxEntriesLocalHeap="2000" | ||
eternal="false" | ||
timeToIdleSeconds="3600" | ||
timeToLiveSeconds="0" | ||
overflowToDisk="false" | ||
statistics="true"> | ||
</cache> | ||
|
||
</ehcache> |
14 changes: 14 additions & 0 deletions
14
vua-upms/vua-upms-server/src/main/resources/vua-upms-client.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
vua.upms.type=server | ||
|
||
vua.upms.session.id=vua-upms-server-session-id | ||
|
||
vua.upms.session.timeout=1800000 | ||
#login url | ||
vua.upms.sso.server.url=127.0.0.1:1111 | ||
|
||
vua.upms.successUrl=/manage/index | ||
|
||
vua.upms.unauthorizedUrl=/403 | ||
|
||
vua.upms.rememberMe.timeout=2592000 |
Oops, something went wrong.