问答详情
源自:2-2 SpringBoot的搭建与启动下

启动报错 贴下错误信息


Consider the following:

If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).


Disconnected from the target VM, address: '127.0.0.1:64380', transport: 'socket'


Process finished with exit code 1


提问者:FPX 2018-11-13 19:52

个回答

  • 等闲故人心
    2018-11-27 16:42:44

    @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)

    换成这个就行了   

  • 慕慕无闻
    2018-11-25 14:58:33

    @SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})

    application类里这样写

  • 慕村1342571
    2018-11-15 22:48:44

    貌似没有加入数据库的配置