I have faced "
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured" error while setting up my learning project using spring boot with postgres.
After spending an hour on searching to fix this issue I have found the solution for it.
Adding below in application.properties resolve this issue for me.
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
No comments:
Post a Comment