飞滴出行网约车2022-将service-driver-user服务注册到Nacos

master
yh 3 years ago
parent f586172782
commit 1cbdb8f04d

@ -3,7 +3,9 @@ package com.mashibing.servicedriveruser;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.mashibing.servicedriveruser.mapper")
public class ServiceDriverUserApplication {

@ -3,10 +3,10 @@ server:
spring:
application:
name: service-driver-user
# cloud:
# nacos:
# discovery:
# server-addr: 127.0.0.1:8848
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/service-driver-user?characterEncoding=utf-8&serverTimezone=GMT%2B8

Loading…
Cancel
Save