Skip to content

Commit e04c96e

Browse files
committed
chore: batch 모듈 런타임 오류 해결
1 parent 5795267 commit e04c96e

File tree

3 files changed

+55
-2
lines changed

3 files changed

+55
-2
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ project(":layer-batch") {
190190
implementation 'org.springframework.boot:spring-boot-starter-web'
191191
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
192192

193+
implementation("org.springframework.cloud:spring-cloud-starter-openfeign:4.1.2")
194+
193195
runtimeOnly 'com.mysql:mysql-connector-j'
194196
}
195197

layer-batch/src/main/java/org/layer/BatchApplication.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.cloud.openfeign.EnableFeignClients;
6+
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
7+
import org.springframework.scheduling.annotation.EnableAsync;
58
import org.springframework.scheduling.annotation.EnableScheduling;
69

710
@SpringBootApplication
811
@EnableScheduling
12+
@EnableFeignClients
13+
@EnableJpaAuditing
14+
@EnableAsync
915
public class BatchApplication {
1016
public static void main(String[] args) {
1117
SpringApplication.run(BatchApplication.class, args);

layer-batch/src/main/resources/application.yml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ server:
33

44
spring:
55
config:
6-
import: optional:file:/config/application-secret.properties
6+
import: application-secret.properties
77
datasource:
88
url: ${DEV_DB_URL}
99
username: ${DEV_DB_NAME}
@@ -17,4 +17,49 @@ spring:
1717
format_sql: true
1818
show_sql: true
1919
open-in-view: false
20-
database: mysql
20+
database: mysql
21+
22+
apple:
23+
login:
24+
issuer: ${DEV_APPLE_ISSUER}
25+
client_id: ${DEV_APPLE_CLIENT_ID}
26+
audience: ${DEV_APPLE_AUD}
27+
28+
kakao:
29+
login:
30+
api_key: ${DEV_KAKAO_API_KEY}
31+
redirect_uri: ${DEV_KAKAO_REDIRECT_URI}
32+
uri:
33+
base: https://kauth.kakao.com
34+
code: /oauth/authorize
35+
token: /oauth/token
36+
api:
37+
uri:
38+
base: https://kapi.kakao.com
39+
user: /v2/user/me
40+
41+
google:
42+
login:
43+
client_id: ${DEV_GOOGLE_CLIENT_ID}
44+
code_uri: ${DEV_GOOGLE_CODE_URI}
45+
token_uri: ${DEV_GOOGLE_TOKEN_URI}
46+
client_secret: ${DEV_GOOGLE_CLIENT_SECRET}
47+
redirect_uri: ${DEV_GOOGLE_REDIRECT_URI}
48+
code_redirect_uri: http://localhost:8080/api/auth/oauth2/google/code
49+
sheet:
50+
id: ${GOOGLE_SHEET_ID}
51+
token_path: ${DEV_GOOGLE_TOKEN_PATH}
52+
53+
ncp:
54+
storage:
55+
region: ${STORAGE_REGION}
56+
bucketName: ${STORAGE_NAME}
57+
endpoint: ${STORAGE_ENDPOINT}
58+
accessKey: ${STORAGE_ACCESS_KEY}
59+
secretKey: ${STORAGE_SECRET_KEY}
60+
61+
openai:
62+
systemContent: ${OPENAI_SYSTEM_CONTENT}
63+
apiKey: ${OPENAI_API_KEY}
64+
model: ${OPENAI_MODEL}
65+
maxTokens: ${OPENAI_MAX_TOKENS}

0 commit comments

Comments
 (0)