Skip to content

Commit

Permalink
ignore 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeSung98 committed Nov 15, 2023
1 parent a7ceab4 commit d7bb15c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
6 changes: 3 additions & 3 deletions user/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ build/
!**/src/main/**/build/
!**/src/test/**/build/

application.yml
application.properties
application-oauth.properties
!**/src/main/resource/application.yml
!**/src/main/resource/application.properties
!**/src/main/resource/application-oauth.properties

### STS ###
.apt_generated
Expand Down
12 changes: 12 additions & 0 deletions user/src/main/java/com/weather/controller/WeatherController.java
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";
}
}
10 changes: 0 additions & 10 deletions user/src/main/resources/application.properties

This file was deleted.

19 changes: 11 additions & 8 deletions user/src/main/resources/application.yml
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

0 comments on commit d7bb15c

Please sign in to comment.