-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
user/src/main/java/com/weather/controller/WeatherController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.weather.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
@Controller | ||
public class WeatherController { | ||
@GetMapping("/test") | ||
public String test() { | ||
return "test"; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
spring: | ||
application: | ||
name: user #애플리케이션 이름, 해당 이름으로 eureka 서버에 등록됨 | ||
|
||
application: | ||
name: user-service | ||
datasource: | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
url: jdbc:mysql://hs-spring-db.cjhazvr1oeo5.ap-northeast-2.rds.amazonaws.com:3306/weatherfit | ||
username: wlfkrdl2 | ||
password: gmltjd36! | ||
eureka: | ||
instance: | ||
instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}} | ||
prefer-ip-address: true | ||
ip-address: 3.35.59.210 #자신의 프로젝트가 배포된 인스턴스 ip | ||
|
||
ip-address: 3.35.59.210 | ||
client: | ||
fetch-registry: true | ||
register-with-eureka: true | ||
service-url: | ||
defaultZone : http://13.124.197.227:8761/eureka #등록할 eureka 서버 | ||
|
||
defaultZone : http://13.124.197.227:8761/eureka | ||
server: | ||
port: 8080 #포트번호 | ||
port: 8080 | ||
|