代码优化
This commit is contained in:
parent
c71c0735f4
commit
398580946b
8
pom.xml
8
pom.xml
|
|
@ -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>
|
||||
<!-- 生产环境 -->
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user