Caused by: org.yaml.snakeyaml.constructor.DuplicateKeyException: while constructing a mapping
in 'reader', line 1, column 1:
server:
^
found duplicate key spring
in 'reader', line 9, column 1:
spring:
^
들여쓰기가 문제인가 싶었는데 아니었다
쓰으읍 .. 하 .... ^^
떡하니 있던 빨간 줄을 무시한 죄
yml 작성 방법이 틀린 것이었음
spring:
output:
ansi:
enabled: always
spring:
datasource:
url: jdbc:h2:tcp://localhost/~/jpashop
username: sa
password:
driver-class-name: org.h2.Driver
위 코드를 아래처럼 바꿨다
👇
spring:
datasource:
url: jdbc:h2:tcp://localhost/~/jpashop
username: sa
password:
driver-class-name: org.h2.Driver
output:
ansi:
enabled: always
성공 !!
덕분에 작성법 제대로 이해함 😎