From 92757d25bed791245ba0c67b2719135b399fb553 Mon Sep 17 00:00:00 2001 From: kimscott Date: Fri, 22 Nov 2019 10:37:18 +0900 Subject: [PATCH] =?UTF-8?q?=E3=85=81=E3=85=94=EB=AA=A8=EB=A6=AC=20?= =?UTF-8?q?=EB=94=94=EB=B9=84=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- boot-camp-oauth.iml | 8 ++++---- pom.xml | 17 +++++++++++------ .../AuthorizationServerApplication.java | 1 - src/main/resources/application.yml | 12 ++++++------ 5 files changed, 25 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 3a627a7..a8c6ee8 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,10 @@ password : password http --form POST localhost:8090/oauth/token \ "Authorization: Basic dWVuZ2luZS1jbGllbnQ6dWVuZ2luZS1zZWNyZXQ=" \ grant_type=password \ -username=4@4.com \ -password=password +username=1@uengine.org \ +password=1 + +http --form POST localhost:8090/oauth/token "Authorization: Basic dWVuZ2luZS1jbGllbnQ6dWVuZ2luZS1zZWNyZXQ=" grant_type=password username=1@uengine.org password=1 ## jks 파일 생성 방법 https://www.lesstif.com/pages/viewpage.action?pageId=20775436 diff --git a/boot-camp-oauth.iml b/boot-camp-oauth.iml index aa900bd..e96933d 100644 --- a/boot-camp-oauth.iml +++ b/boot-camp-oauth.iml @@ -23,6 +23,9 @@ + + + @@ -95,10 +98,7 @@ - - - - + diff --git a/pom.xml b/pom.xml index f86060d..9b2c38f 100755 --- a/pom.xml +++ b/pom.xml @@ -44,14 +44,19 @@ 2.1.4.RELEASE - org.springframework.boot - spring-boot-starter-jdbc - - - mysql - mysql-connector-java + com.h2database + h2 runtime + + + + + + + + + org.apache.commons commons-lang3 diff --git a/src/main/java/com/example/template/AuthorizationServerApplication.java b/src/main/java/com/example/template/AuthorizationServerApplication.java index 59d9a1f..540d8ad 100755 --- a/src/main/java/com/example/template/AuthorizationServerApplication.java +++ b/src/main/java/com/example/template/AuthorizationServerApplication.java @@ -33,7 +33,6 @@ public class AuthorizationServerApplication implements CommandLineRunner { user.setNickName("유엔진"); user.setAddress("서울시"); user.setRole("USER_ADMIN"); -// repository.save(user); } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 19e7db3..e9485d5 100755 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,12 +8,12 @@ spring: hibernate: dialect: org.hibernate.dialect.MySQL57Dialect show_sql: true - datasource: - url: jdbc:mysql://104.198.86.212:3306/uengine - username: root - password: test1234!@ - # mybatis 설정시에는 driverClassName 을 넣어주어야함 - driverClassName: com.mysql.cj.jdbc.Driver +# datasource: +# url: jdbc:mysql://104.198.86.212:3306/uengine +# username: root +# password: test1234!@ +# # mybatis 설정시에는 driverClassName 을 넣어주어야함 +# driverClassName: com.mysql.cj.jdbc.Driver --- spring: