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

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


[plain] 
​​view plain​​​
​​​copy​​
1. 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热部署