jpa 겟 스타트에 보면
메모리 DB를 쓰고 있고
datasource 프로퍼티 설정은 안나온다.
applicatoin.properites에서 설정하면 된다.
spring.datasource.url = jdbc:mysql://localhost:3306/dbname?useSSL=false
spring.datasource.username = username
spring.datasource.password = password
'스프링(Spring)' 카테고리의 다른 글
AspectJ @annotaion 표현식 (0) | 2018.01.28 |
---|---|
spring security#2 DB를 통한 인증 (0) | 2018.01.17 |
spring-security#1 시작하기 (0) | 2018.01.16 |
Invalid character found in method name. HTTP method names must be tokens (0) | 2018.01.15 |
Spring + Mysql + MyBatis (0) | 2017.10.29 |