修改配置文件路径

master
星期八 5 years ago
parent 3ff262bd9c
commit 103de6f9f4
  1. 2
      pom.xml
  2. 1
      src/main/java/com/lq/code/util/jdbc/JdbcUtils.java
  3. 0
      src/main/profile/dev/email.properties
  4. 0
      src/main/profile/dev/file.properties
  5. 0
      src/main/profile/dev/jdbc.properties
  6. 0
      src/main/profile/dev/log4j.properties
  7. 0
      src/main/profile/dev/redis.properties
  8. 0
      src/main/profile/pro/email.properties
  9. 0
      src/main/profile/pro/file.properties
  10. 6
      src/main/profile/pro/jdbc.properties
  11. 0
      src/main/profile/pro/log4j.properties
  12. 0
      src/main/profile/pro/redis.properties
  13. 0
      src/main/profile/test/email.properties
  14. 1
      src/main/profile/test/file.properties
  15. 6
      src/main/profile/test/jdbc.properties
  16. 0
      src/main/profile/test/log4j.properties
  17. 4
      src/main/profile/test/redis.properties
  18. 20
      src/main/resources/ehcache/ehcache-shiro.xml
  19. 25
      src/main/resources/ehcache/ehcache.xml
  20. 1
      src/main/resources/pro/file.properties

@ -621,7 +621,7 @@
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/${env}</directory>
<directory>${project.basedir}/src/main/profile/${env}</directory>
<includes>
<include>*</include>
</includes>

@ -12,6 +12,7 @@ import java.util.Properties;
public class JdbcUtils {
private static String driver = null;
private static String url = null;

@ -1,9 +1,9 @@
#--------- jdbc 配置---------
#--------- jdbc 配置---------
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8
jdbc.url=jdbc:mysql://localhost:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8
jdbc.user=root
jdbc.password=mysql
#--------数据库连接池配置 -------
#--------数据库连接池配置 -------
durid.pool.initialSize=5
durid.pool.maxActive=5
durid.pool.minIdle=1

@ -0,0 +1 @@
file.upload=/Users/qi/java/fileManger/

@ -1,9 +1,9 @@
#--------- jdbc <EFBFBD><EFBFBD><EFBFBD><EFBFBD>---------
#--------- jdbc 配置---------
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://192.168.31.19:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8
jdbc.url=jdbc:mysql://localhost:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8
jdbc.user=root
jdbc.password=mysql
#--------<EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -------
#--------数据库连接池配置 -------
durid.pool.initialSize=5
durid.pool.maxActive=5
durid.pool.minIdle=1

@ -1,9 +1,9 @@
redis.host=192.168.31.19
redis.host=127.0.0.1
redis.port=6379
redis.pass=
redis.timeout=-1
redis.maxTotal=20
redis.maxTotal=15
redis.maxIdle=10
redis.numTestsPerEvictionRun=1024
redis.timeBetweenEvictionRunsMillis=30000

@ -1,20 +0,0 @@
<ehcache updateCheck="false" name="shiroCache">
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="false"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
/>
<cache name="sessioncache"
maxElementsInMemory="1000"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="0"
timeToLiveSeconds="200"/>
</ehcache>

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ehcache>
<!-- 指定一个文件目录,当EhCache把数据写到硬盘上时,将把数据写到这个文件目录下 -->
<diskStore path="java.io.tmpdir"/>
<!-- 设定缓存的默认数据过期策略 -->
<defaultCache
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="10"
timeToLiveSeconds="20"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"/>
<cache name="cacheTest"
maxElementsInMemory="1000"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="0"
timeToLiveSeconds="200"/>
</ehcache>

@ -1 +0,0 @@
file.upload=/home/nfs/fileManger/
Loading…
Cancel
Save