server:
port: 8080
servlet:
context-path: /
encoding:
charset: UTF-8
enabled: true
force: true
spring:
datasource:
# url: jdbc:h2:tcp://localhost/~/test // local
url: jdbc:h2:mem:testdb // in-memory
driver-class-name: org.h2.Driver
username: sa
password:
initialize: true
h2:
console:
enabled: true
sql:
init:
mode: always
schema-locations: classpath*:schema.sql
jpa:
# defer-datasource-initialization: true
hibernate:
ddl-auto: create #create update none
show-sql: true
'개발 > SpringBoot' 카테고리의 다른 글
[오류/해결] Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. (0) | 2022.08.07 |
---|---|
Spring WebClient / objectMappper (0) | 2022.06.27 |
[SpringBoot] @NotNull @NotEmpty @NotBlank 차이점 (0) | 2022.06.15 |
@Autowired 필드 주입 , private final 생성자 주입 차이 (0) | 2022.05.31 |
[해결] 스프링 BeanCreationException:, org.hibernate.AnnotationException 에러 (0) | 2022.03.11 |