基础版本完成
This commit is contained in:
		@@ -19,6 +19,10 @@
 | 
			
		||||
    </properties>
 | 
			
		||||
 | 
			
		||||
    <dependencies>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>org.springframework.cloud</groupId>
 | 
			
		||||
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
 | 
			
		||||
        </dependency>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>org.springframework.boot</groupId>
 | 
			
		||||
            <artifactId>spring-boot-starter-web</artifactId>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,15 @@
 | 
			
		||||
server:
 | 
			
		||||
  port: 8201
 | 
			
		||||
spring:
 | 
			
		||||
  application:
 | 
			
		||||
    name: bookservice
 | 
			
		||||
  datasource:
 | 
			
		||||
    driver-class-name: com.mysql.cj.jdbc.Driver
 | 
			
		||||
    url: jdbc:mysql://43.143.164.194:3306/mac
 | 
			
		||||
    username: mac
 | 
			
		||||
    password: mactest
 | 
			
		||||
eureka:
 | 
			
		||||
  client:
 | 
			
		||||
    # 跟上面一样,需要指向Eureka服务端地址,这样才能进行注册
 | 
			
		||||
    service-url:
 | 
			
		||||
      defaultZone: http://localhost:8888/eureka
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user