๐ŸŒธ [SPRING BOOT] | yaml - SQLInvalidAuthorizationSpecException

0
post-thumbnail

๐Ÿ”น ์—๋Ÿฌ ๋ฉ”์‹œ์ง€

โœ… SQLInvalidAuthorizationSpecException


java.sql.SQLInvalidAuthorizationSpecException: 
Could not connect to address=(host=localhost)(port=3308)(type=master) : 
(conn=220) Access denied for user 'User'@'localhost' (using password: YES)

๐Ÿ”น ์›์ธ

datasource:
  user:       ๐Ÿ‘ˆ์ด๋ ‡๊ฒŒ ๋˜์–ด์žˆ์—ˆ๋‹ค, ์˜คํƒ€!

๐Ÿ”น ํ•ด๊ฒฐ

datasource:
  username: ๐Ÿ‘ˆ ์œผ๋กœ ๊ณ ์น˜๋ฉด ๋œ๋‹ค.

๐Ÿ”น ์›์ธ2

yaml์— ์˜คํƒ€๊ฐ€ ๋‚˜๋ฉด ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค.

mybatis:
  mapper-locations: mybatis-mapper/**/*.xml
  type-aliases-package: com.koreait.facebook ๐Ÿ‘ˆ ํŒจํ‚ค์ง€์ด๋ฆ„ ์˜คํƒ€๋‚˜๋„ ์—๋Ÿฌ๋‚œ๋‹ค.
profile
๋ช‡ ๋ฒˆ์„ ๋„˜์–ด์ ธ๋„ ์•ž์œผ๋กœ ๊ณ„์† ๋‚˜์•„๊ฐ€์ž

0๊ฐœ์˜ ๋Œ“๊ธ€