update to spring-boot-2.1.8.RELEASE & spring-cloud-Greenwich.SR3

This commit is contained in:
zlt
2019-10-04 21:45:37 +08:00
parent cbfe49e42a
commit eecaf5bb58
38 changed files with 93 additions and 117 deletions
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestParam;
*
* @author ujued
*/
@FeignClient(value = "txlcn-demo-spring-service-b", fallback = ServiceBFallback.class)
@FeignClient(value = "txlcn-demo-spring-service-b")
public interface ServiceBClient {
@GetMapping("/rpc")
@@ -1,17 +0,0 @@
package org.txlcn.demo.common.spring;
import org.springframework.stereotype.Component;
/**
* Description:
* Date: 19-2-19 下午1:53
*
* @author ujued
*/
@Component
public class ServiceBFallback implements ServiceBClient {
@Override
public String rpc(String name) {
return "fallback";
}
}
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestParam;
*
* @author ujued
*/
@FeignClient(value = "txlcn-demo-spring-service-c", fallback = ServiceCFallback.class)
@FeignClient(value = "txlcn-demo-spring-service-c")
public interface ServiceCClient {
@GetMapping("/rpc")
@@ -1,19 +0,0 @@
package org.txlcn.demo.common.spring;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* Description:
* Date: 19-2-19 下午1:53
*
* @author ujued
*/
@Component
@Slf4j
public class ServiceCFallback implements ServiceCClient {
@Override
public String rpc(String name) {
return "fallback";
}
}
@@ -1,6 +1,6 @@
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/txlcn-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
@@ -13,7 +13,7 @@ tx-lcn:
enabled: true
logger:
enabled: true
driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/tx_logger?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
@@ -1,6 +1,6 @@
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/txlcn-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
@@ -13,7 +13,7 @@ tx-lcn:
enabled: true
logger:
enabled: true
driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/tx_logger?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
@@ -1,6 +1,6 @@
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${zlt.datasource.ip}:3306/txlcn-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}
@@ -13,7 +13,7 @@ tx-lcn:
enabled: true
logger:
enabled: true
driver-class-name: com.mysql.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/tx_logger?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: ${zlt.datasource.username}
password: ${zlt.datasource.password}