springboot使用问题集合

环境:开发工具:sts 3.8.2   springboot版本:1.4.2 构建工具gradle

1、不连接数据库启动springboot会出现:

Cannot determine embedded database driver class for database type NONE

原因是:springboot启动时会自动注入数据源和配置jpa

解决:在@SpringBootApplication中排除其注入

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


2、springboot启动后默认没有带项目路径,访问:http://127.0.0.1:8080/hello


3、配置springboot热部署





版权声明:本文为u011186019原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。