main
黄海 12 months ago
parent 749c307842
commit 98fe9f80a9

@ -1,10 +1,9 @@
spring: spring:
datasource: datasource:
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
# url: jdbc:mysql://10.10.14.210:22066/ycharge?useUnicode=true&characterEncoding=UTF-8 url: jdbc:mysql://10.10.14.210:22066/yltcharge?useUnicode=true&characterEncoding=UTF-8
url: jdbc:mysql://10.10.14.210:22066/ycharge?useUnicode=true&characterEncoding=UTF-8 username: ycharge
username: icharge password: ycharge
password: icharge
druid: druid:
stat-view-servlet: stat-view-servlet:
allow: true allow: true
@ -21,9 +20,9 @@ spring:
mongodb: mongodb:
host: 10.10.14.210 host: 10.10.14.210
port: 27017 port: 27017
database: ycharge database: yltcharge
username: ycharge username: yltcharge
password: ycharge password: yltcharge
redis: redis:
database: 0 database: 0

@ -1,10 +1,9 @@
spring: spring:
datasource: datasource:
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
# url: jdbc:mysql://10.10.14.210:22066/ycharge?useUnicode=true&characterEncoding=UTF-8 url: jdbc:mysql://10.10.14.210:22066/yltcharge?useUnicode=true&characterEncoding=UTF-8
url: jdbc:mysql://10.10.14.210:22066/ycharge?useUnicode=true&characterEncoding=UTF-8 username: ycharge
username: icharge password: ycharge
password: icharge
druid: druid:
stat-view-servlet: stat-view-servlet:
allow: true allow: true
@ -21,9 +20,9 @@ spring:
mongodb: mongodb:
host: 10.10.14.210 host: 10.10.14.210
port: 27017 port: 27017
database: ycharge database: yltcharge
username: ycharge username: yltcharge
password: ycharge password: yltcharge
redis: redis:
database: 0 database: 0

@ -2,18 +2,14 @@ package com.charge.task;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients; import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@EnableFeignClients @EnableFeignClients
@ComponentScan
@SpringBootApplication @SpringBootApplication
@EnableAutoConfiguration
@EnableScheduling @EnableScheduling
@MapperScan(basePackages = "com.charge.task.dao") @MapperScan(basePackages = "com.charge.task.dao")
@RestController @RestController

@ -15,9 +15,9 @@ spring:
mongodb: mongodb:
host: 10.10.14.210 host: 10.10.14.210
port: 27017 port: 27017
database: ycharge database: yltcharge
username: ycharge username: yltcharge
password: ycharge password: yltcharge
redis: redis:
host: 10.10.14.210 host: 10.10.14.210
@ -29,32 +29,30 @@ spring:
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 0
# 这里写有什么意义呢? # 调用其它项目配置
openapi: openapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:31301 listOfServers: http://ms-finance:7014
distributeapi: distributeapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:31636 listOfServers: http://ms-admin:7011
financeapi: financeapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:32134 listOfServers: http://ms-websocket-ocpp:7022
orderbkapi: orderbkapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:32202 listOfServers: http://ms-admin:7011
orderapi: orderapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:30258 listOfServers: http://ms-task:7021
userapi: userapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:32150 listOfServers: http://ms-user:7022
hlht: false hlht: false

@ -15,9 +15,9 @@ spring:
mongodb: mongodb:
host: 10.10.14.210 host: 10.10.14.210
port: 27017 port: 27017
database: ycharge database: yltcharge
username: ycharge username: yltcharge
password: ycharge password: yltcharge
redis: redis:
host: 10.10.14.210 host: 10.10.14.210
@ -29,32 +29,30 @@ spring:
max-idle: 8 max-idle: 8
min-idle: 0 min-idle: 0
# 这里写有什么意义呢? # 调用其它项目配置
openapi: openapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:31301 listOfServers: http://ms-finance:7014
distributeapi: distributeapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:31636 listOfServers: http://ms-admin:7011
financeapi: financeapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:32134 listOfServers: http://ms-websocket-ocpp:7022
orderbkapi: orderbkapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:32202 listOfServers: http://ms-admin:7011
orderapi: orderapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:30258 listOfServers: http://ms-task:7021
userapi: userapi:
ribbon: ribbon:
listOfServers: http://i100c.3322.org:32150 listOfServers: http://ms-user:7022
hlht: false hlht: false

@ -1,8 +1,8 @@
spring: spring:
datasource: datasource:
url: jdbc:mysql://10.10.14.210:22066/ycharge?useUnicode=true&characterEncoding=UTF-8 url: jdbc:mysql://10.10.14.210:22066/yltcharge?useUnicode=true&characterEncoding=UTF-8
username: icharge username: ycharge
password: icharge password: ycharge
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
druid: druid:
stat-view-servlet: stat-view-servlet:

@ -1,8 +1,8 @@
spring: spring:
datasource: datasource:
url: jdbc:mysql://10.10.14.210:22066/ycharge?useUnicode=true&characterEncoding=UTF-8 url: jdbc:mysql://10.10.14.210:22066/yltcharge?useUnicode=true&characterEncoding=UTF-8
username: icharge username: ycharge
password: icharge password: ycharge
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
druid: druid:
stat-view-servlet: stat-view-servlet:

Loading…
Cancel
Save