Spring Boot jdbc datasource autoconfiguration fails on standalone tomcat

前端 未结 5 1444
别跟我提以往
别跟我提以往 2020-12-19 02:00

While trying to deploy and start a spring boot application on a standalone tomcat (7) instance, we ran into an issue were the autoconfigured spring datasource bean isn\'t fo

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-19 02:22

    I was facing the same issue earlier and same was resolved by adding

    @PropertySource("classpath:application.properties")
    

    in Application.java Hope this helps

提交回复
热议问题