feat: spring config

main
itao 1 year ago
parent 83bf6b065a
commit eb7d4a37e5

@ -17,6 +17,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>

@ -19,8 +19,4 @@ eureka:
service-url:
defaultZone: http://127.0.0.1:6868/eureka/
instance:
prefer-ip-address: true
springdoc:
packages-to-scan: com.luoo.tag.controller
swagger-ui:
path: /api/doc
prefer-ip-address: true

@ -0,0 +1,8 @@
spring:
cloud:
config:
name: tag
profile: dev
label: master
uri: http://116.62.145.60:12000
# uri: http://127.0.0.1:12000
Loading…
Cancel
Save