Commit 53f1721876c51e000d04b628ff4033de71912920

Authored by 张志伟
1 parent 8bf465d6

feature(*): 修改连接池

- 修改连接池大小
fw-valhalla-server/src/main/java/cn/fw/valhalla/controller/app/PubStandController.java
... ... @@ -54,7 +54,7 @@ public class PubStandController {
54 54 @PutMapping("/join")
55 55 @ControllerMethod("加入站岗队列")
56 56 public Message<Void> join(@CurrentUser final LoginAuthBean user) {
57   - pubStandBizService.join(user.getUserId());
  57 + pubStandBizService.join(user.getUserId(), true);
58 58 return success();
59 59 }
60 60  
... ...
fw-valhalla-server/src/main/resources/application.yml
... ... @@ -30,6 +30,7 @@ spring:
30 30 driver-class-name: com.mysql.jdbc.Driver
31 31 hikari:
32 32 connection-test-query: SELECT 1 FROM DUAL
  33 + maximum-pool-size: 30
33 34 password: mysql@pwd123
34 35 url: jdbc:mysql://192.168.0.234:3306/fw_valhalla?characterEncoding=UTF-8&useSSL=false
35 36 username: root
... ...
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/pub/PubStandBizService.java
... ... @@ -157,15 +157,6 @@ public class PubStandBizService {
157 157 }
158 158  
159 159 /**
160   - * 加入队列
161   - *
162   - * @param staffId
163   - */
164   - public void join(final Long staffId) {
165   - this.join(staffId, true);
166   - }
167   -
168   - /**
169 160 * 重置状态
170 161 */
171 162 @Transactional(rollbackFor = Exception.class)
... ...