fanxw hai 1 ano
pai
achega
6e01e26edf

+ 11 - 11
pom.xml

@@ -54,17 +54,17 @@
54 54
 			<artifactId>pagehelper-spring-boot-starter</artifactId>
55 55
 			<version>1.2.3</version>
56 56
 		</dependency>
57
-		<!-- gbase依赖包 -->  
58
-		<dependency>
59
-	      	<groupId>com.gbase8s</groupId>
60
-	      	<artifactId>ifxjdbc</artifactId>
61
-	      	<version>1.0</version>
62
-	    </dependency>
63
-    	<dependency>
64
-      		<groupId>com.gbase</groupId>
65
-      		<artifactId>druid</artifactId>
66
-      		<version>1.0.28</version>
67
-    	</dependency>
57
+		<!-- gbase依赖包 -->
58
+        <dependency>
59
+            <groupId>com.gbase8s</groupId>
60
+            <artifactId>ifxjdbc</artifactId>
61
+            <version>1.0</version>
62
+        </dependency>
63
+        <dependency>
64
+            <groupId>com.gbase</groupId>
65
+            <artifactId>druid</artifactId>
66
+            <version>1.0.28</version>
67
+        </dependency>
68 68
 
69 69
 		<dependency>
70 70
 			<groupId>org.apache.commons</groupId>

+ 0 - 17
src/main/java/com/chinaitop/WebSecurityConfig.java

@@ -11,27 +11,10 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
11 11
 
12 12
 	@Override
13 13
     protected void configure(HttpSecurity http) throws Exception {
14
-		String[] urls = {
15
-                "*",
16
-                "/*",
17
-                "/*/*",
18
-                "/*/*/*",
19
-                "/*/*/*/*",
20
-                "/*/*/*/*/*/*",
21
-                "/login"
22
-        };
23 14
 
24 15
 		http.authorizeRequests().anyRequest().permitAll() //允许所有用户访问所有资源
25 16
         .and()
26 17
         .csrf().disable(); // 禁用CSRF(防止伪造的跨域攻击)
27 18
 
28
-//        super.configure(http);
29
-//        
30
-//        http.authorizeRequests() // 对请求执行认证与授权
31
-//                .antMatchers(urls) // 匹配某些请求路径
32
-//                .permitAll() // (对此前匹配的请求路径)不需要通过认证即允许访问
33
-//                .anyRequest() // 除以上配置过的请求路径以外的所有请求路径
34
-//                .authenticated(); // 要求是已经通过认证的
35
-//        super.configure(http);
36 19
     }
37 20
 }

+ 1 - 1
src/main/java/com/chinaitop/depot/basic/service/impl/BasicKeeperHouseServiceImpl.java

@@ -65,7 +65,7 @@ public class BasicKeeperHouseServiceImpl implements BasicKeeperHouseService {
65 65
 		}
66 66
 		List<BasicKeeperHouse> keepHouse_list = mapper.selectByExample(keepHouseExample);
67 67
 
68
-		/* 获取保管这个仓房的有人的用户ID */
68
+		/* 获取保管这个仓房的有人的用户ID */
69 69
 		List<Integer> keep_list = null;
70 70
 		if (null != keepHouse_list && keepHouse_list.size() > 0) {
71 71
 			keep_list = new ArrayList<Integer>();

+ 3 - 5
src/main/resources/bootstrap.yml

@@ -13,10 +13,8 @@ eureka:
13 13
   instance:
14 14
     hostname: 172.16.0.16
15 15
     #hostname: localhost
16
-    #prefer-ip-address: true
17
-    # 每隔10s发送一次心跳(默认30s)
16
+    prefer-ip-address: true
18 17
     lease-renewal-interval-in-seconds: 10
19
-    # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
20 18
     lease-expiration-duration-in-seconds: 30
21 19
     status-page-url: http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
22 20
 
@@ -38,10 +36,10 @@ spring:
38 36
   datasource:
39 37
     type: com.alibaba.druid.pool.DruidDataSource
40 38
     driver-class-name: com.gbasedbt.jdbc.IfxDriver
41
-    url: jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
39
+    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;
42 40
     username: gbasedbt
43 41
     password: cDbK2S0go8
44
-    #url: jdbc:gbasedbt-sqli://10.223.3.63:9088/depot:GBASEDBTSERVER=gbaseserver2;DB_LOCALE=zh_CN.utf8;CLIENT_LOCALE=zh_CN.utf8;NEWCODESET=UTF8,utf8,57372;GL_USEGLU=1;
42
+    #url: jdbc:gbasedbt-sqli://200.2.68.230:9088/depot:GBASEDBTSERVER=gbaseserver2;DB_LOCALE=zh_CN.utf8;CLIENT_LOCALE=zh_CN.utf8;NEWCODESET=UTF8,utf8,57372;GL_USEGLU=1;
45 43
     #username: gbasedbt
46 44
     #password: 4E7#8x8Yut
47 45
   # 缓存配置