spring-boot application without a datasource

前端 未结 5 1586
粉色の甜心
粉色の甜心 2020-12-08 19:38

Is it possible to create a spring-boot application that has NO datasource? In my case i just need a simple REST app but it seems on start up that there is an attempt to auto

5条回答
  •  半阙折子戏
    2020-12-08 19:55

    Provide spring.datasource.url in the application.properties file. It worked for me. Example: spring.datasource.url=jdbc:mysql://localhost/Test_DB

提交回复
热议问题