代码优化

This commit is contained in:
zhuangqian 2016-11-03 11:10:46 +08:00
parent c71c0735f4
commit 398580946b
3 changed files with 12 additions and 7 deletions

View File

@ -126,7 +126,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.39</version>
<version>5.1.40</version>
</dependency>
<!-- oracle -->
@ -248,12 +248,12 @@
<profile>
<!-- 本地开发环境 -->
<id>development</id>
<properties>
<profiles.active>dev</profiles.active>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<profiles.active>dev</profiles.active>
</properties>
</profile>
<profile>
<!-- 生产环境 -->

View File

@ -37,13 +37,14 @@ druid.maxWait = 60000
############################# config start ###########################################
#静态资源地址(static/image等推荐放入nginx)
config.domain = http://localhost:8888/images
config.domain = http://192.168.243.128/images
#远程上传模式
config.remoteMode = true
#远程上传地址(放在nginx)
config.remotePath = D://nginx/html/images
#config.remotePath = D://nginx/html/images
config.remotePath = /usr/local/nginx/html/images
#上传头文件夹
config.uploadPath = /upload

View File

@ -13,7 +13,11 @@ public interface ConstConfig {
String MAXACTIVE = ConfigListener.map.get("druid.maxActive");
String MINIDLE = ConfigListener.map.get("druid.minIdle");
String MAXWAIT = ConfigListener.map.get("druid.maxWait");
String DOMAIN = ConfigListener.map.get("config.domain");
String REMOTE_MODE = ConfigListener.map.get("config.remoteMode");
String REMOTE_PATH = ConfigListener.map.get("config.remotePath");
String UPLOAD_PATH = ConfigListener.map.get("config.uploadPath");
String DOWNLOAD_PATH = ConfigListener.map.get("config.downloadPath");
}