Procházet zdrojové kódy

Merge remote-tracking branch 'origin/master'

lvzhikai před 5 roky
rodič
revize
06159fd1bb
5 změnil soubory, kde provedl 127 přidání a 19 odebrání
  1. 14 0
      .gitignore
  2. 8 0
      LICENSE
  3. 3 0
      README.md
  4. 2 2
      pom.xml
  5. 100 17
      src/main/resources/bootstrap.yml

+ 14 - 0
.gitignore

@@ -0,0 +1,14 @@
1
+# ---> Java
2
+*.class
3
+
4
+# Mobile Tools for Java (J2ME)
5
+.mtj.tmp/
6
+
7
+# Package Files #
8
+*.jar
9
+*.war
10
+*.ear
11
+
12
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
13
+hs_err_pid*
14
+

+ 8 - 0
LICENSE

@@ -0,0 +1,8 @@
1
+MIT License
2
+Copyright (c) <year> <copyright holders>
3
+
4
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 3 - 0
README.md

@@ -0,0 +1,3 @@
1
+# depot-storage-tianjin
2
+
3
+仓储业务初始化

+ 2 - 2
pom.xml

@@ -5,8 +5,8 @@
5
     <!--model-->
5
     <!--model-->
6
     <groupId>com.chinaitop</groupId>
6
     <groupId>com.chinaitop</groupId>
7
     <artifactId>depot-storage</artifactId>
7
     <artifactId>depot-storage</artifactId>
8
-    <version>1.0.1</version><!--上传正式版(GBase:1开头)-->
9
-    <!--<version>1.0.1-SNAPSHOT</version>-->
8
+    <!--<version>1.0.1</version>--><!--上传正式版(GBase:1开头)-->
9
+    <version>0.0.1-SNAPSHOT</version>
10
     <name>depot-storage</name>
10
     <name>depot-storage</name>
11
     <packaging>jar</packaging>
11
     <packaging>jar</packaging>
12
     <!--model description-->
12
     <!--model description-->

+ 100 - 17
src/main/resources/bootstrap.yml

@@ -1,20 +1,35 @@
1
-#本地开发环境
1
+spring:
2
+  profiles:
3
+    active: clouda
4
+  servlet:
5
+    multipart:
6
+      max-file-size: 20MB
7
+      max-request-size: 20MB
8
+  # 静态资源配置
9
+  resources:
10
+    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
2
 server:
11
 server:
3
   port: 9012
12
   port: 9012
4
   tomcat:
13
   tomcat:
5
     uri-encoding: utf-8
14
     uri-encoding: utf-8
6
-
15
+reportUrl: http://101.36.160.140:8097
16
+mybatis:
17
+  config-location: classpath:mybatis/mybatis-config.xml
18
+---
7
 # 注册中心配置
19
 # 注册中心配置
8
 eureka:
20
 eureka:
9
   client:
21
   client:
10
     service-url:
22
     service-url:
11
       defaultZone: http://localhost:9001/eureka/
23
       defaultZone: http://localhost:9001/eureka/
24
+    register-with-eureka: false
25
+    fetchRegistry: false
12
   instance:
26
   instance:
13
     prefer-ip-address: true
27
     prefer-ip-address: true
14
     lease-renewal-interval-in-seconds: 10
28
     lease-renewal-interval-in-seconds: 10
15
     lease-expiration-duration-in-seconds: 30
29
     lease-expiration-duration-in-seconds: 30
16
-
30
+    status-page-url-path: /swagger-ui.html
17
 spring:
31
 spring:
32
+  profiles: locala
18
   application:
33
   application:
19
     name: depot-storage
34
     name: depot-storage
20
   # 数据库配置
35
   # 数据库配置
@@ -29,7 +44,7 @@ spring:
29
     store-type: redis
44
     store-type: redis
30
   redis:
45
   redis:
31
     database: 2
46
     database: 2
32
-    host: localhost
47
+    host: 127.0.0.1
33
     port: 6379
48
     port: 6379
34
     password:
49
     password:
35
     timeout: 3000
50
     timeout: 3000
@@ -39,19 +54,87 @@ spring:
39
         max-wait: -1
54
         max-wait: -1
40
         max-idle: 8
55
         max-idle: 8
41
         min-idle: 0
56
         min-idle: 0
42
-  jackson:
43
-    date-format: yyyy-MM-dd
44
-    time-zone: GMT+8
45
-  # 静态资源配置
46
-  resources:
47
-    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
48
-  servlet:
49
-    multipart:
50
-      max-file-size: 20MB
51
-      max-request-size: 20MB
52
-mybatis:
53
-  config-location: classpath:mybatis/mybatis-config.xml
57
+web:
58
+  upload-path: D:/upload
59
+logging:
60
+  level:
61
+    com.chinaitop.depot.storage.mapper: debug
62
+---
63
+# 注册中心配置
64
+eureka:
65
+  client:
66
+    service-url:
67
+      defaultZone: http://172.16.0.4:9711/eureka/
68
+  instance:
69
+    prefer-ip-address: true
70
+    lease-renewal-interval-in-seconds: 10
71
+    lease-expiration-duration-in-seconds: 30
72
+    status-page-url-path: /swagger-ui.html
73
+
74
+spring:
75
+  profiles: clouda
76
+  application:
77
+    name: depot-storage
78
+  # 数据库配置
79
+  datasource:
80
+    type: com.alibaba.druid.pool.DruidDataSource
81
+    driver-class-name: com.gbasedbt.jdbc.IfxDriver
82
+    url: jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=ol_gbasedbt1210;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
83
+    username: gbasedbt
84
+    password: cDbK2S0go8
85
+  # 缓存配置 host: redis-depot
86
+  session:
87
+    store-type: redis
88
+  redis:
89
+    database: 4
90
+    host: 172.16.0.46
91
+    port: 6679
92
+    password: 123456
93
+    timeout: 3000
94
+    jedis:
95
+      pool:
96
+        max-active: 8
97
+        max-wait: -1
98
+        max-idle: 8
99
+        min-idle: 0
54
 web:
100
 web:
55
   upload-path: /home
101
   upload-path: /home
102
+---
103
+# 注册中心配置
104
+eureka:
105
+  client:
106
+    service-url:
107
+      defaultZone: http://localhost:9001/eureka/
108
+  instance:
109
+    prefer-ip-address: true
110
+    lease-renewal-interval-in-seconds: 10
111
+    lease-expiration-duration-in-seconds: 30
56
 
112
 
57
-reportUrl: http://101.36.160.140:8097
113
+spring:
114
+  profiles: prop
115
+  application:
116
+    name: depot-storage
117
+  # 数据库配置
118
+  datasource:
119
+    type: com.alibaba.druid.pool.DruidDataSource
120
+    driver-class-name: com.gbasedbt.jdbc.IfxDriver
121
+    url: jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=depot;
122
+    username: gbasedbt
123
+    password: GBase123
124
+  # 缓存配置 host: redis-depot
125
+  session:
126
+    store-type: redis
127
+  redis:
128
+    database: 0
129
+    host: 127.0.0.1
130
+    port: 6379
131
+    password:
132
+    timeout: 3000
133
+    jedis:
134
+      pool:
135
+        max-active: 8
136
+        max-wait: -1
137
+        max-idle: 8
138
+        min-idle: 0
139
+web:
140
+  upload-path: /home