Skip to content

Commit a6866ff

Browse files
committed
Setting :: 기본 환경 설정
1 parent c2e929e commit a6866ff

File tree

3 files changed

+20
-27
lines changed

3 files changed

+20
-27
lines changed

Diff for: build.gradle

+8-13
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,17 @@ repositories {
1616
}
1717

1818
dependencies {
19-
implementation 'org.springframework.boot:spring-boot-starter-web'
20-
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
21-
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
22-
implementation 'org.springframework.boot:spring-boot-starter-security'
23-
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
24-
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
2519
implementation 'io.jsonwebtoken:jjwt:0.9.1'
2620
implementation 'javax.xml.bind:jaxb-api:2.3.1'
27-
28-
runtimeOnly 'com.h2database:h2'
29-
30-
compileOnly 'org.projectlombok:lombok'
21+
implementation 'org.springframework.boot:spring-boot-starter-web'
22+
implementation 'org.springframework.boot:spring-boot-starter-security'
23+
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
24+
implementation 'org.springframework.boot:spring-boot-starter-validation'
25+
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
26+
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.0.3'
3127
annotationProcessor 'org.projectlombok:lombok'
32-
testAnnotationProcessor 'org.projectlombok:lombok'
33-
34-
testImplementation 'org.projectlombok:lombok'
28+
compileOnly 'org.projectlombok:lombok'
29+
runtimeOnly 'com.mysql:mysql-connector-j'
3530
testImplementation 'org.springframework.boot:spring-boot-starter-test'
3631
testImplementation 'org.springframework.security:spring-security-test'
3732
}

Diff for: src/main/java/com/anys34/oauth2/Oauth2Application.java

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
66

7-
@EnableJpaAuditing
87
@SpringBootApplication
98
public class Oauth2Application {
109

Diff for: src/main/resources/application.yml

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
spring:
2+
datasource:
3+
driver-class-name: com.mysql.cj.jdbc.Driver
4+
url: jdbc:mysql://localhost:3306/oauth
5+
username: root
6+
password:
7+
28
jpa:
9+
database: mysql
10+
database-platform: org.hibernate.dialect.MySQLDialect
11+
generate-ddl: true
12+
hibernate:
13+
ddl-auto: update
314
show-sql: true
415
properties:
516
hibernate:
617
format_sql: true
7-
defer-datasource-initialization: true
8-
datasource:
9-
url: jdbc:h2:mem:testdb
10-
username: sa
11-
h2:
12-
console:
13-
enabled: true
14-
profiles:
15-
include: oauth
16-
17-
jwt:
18-
19-
secret_key: anys34
18+
open-in-view: false

0 commit comments

Comments
 (0)