Failed to configure a DataSource: 'url' attribute is not.. 뭐시기 에러

클래스에 알맞는 드라이버를 설치하라인데.. mysql 디펜던시 주석처리 했는데도 저럼

 

 

 

1. 에러 해결 방법

  • 어노테이션 추가 
    • 실행하는 클래스 위에 @SpringBootApplication(exclude={DataSourceAutoConfiguration.class}) 추가

 

JDBC 안쓰겠다는 어노테이션 입력

 

http://localhost:8080/test/hello 접속 성공

 

+ Recent posts