飞滴出行网约车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.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
@SpringBootApplication @SpringBootApplication
@MapperScan("com.mashibing.servicedriveruser.mapper") @MapperScan("com.mashibing.servicedriveruser.mapper")
public class ServiceDriverUserApplication { public class ServiceDriverUserApplication {

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

Loading…
Cancel
Save