本文共 518 字,大约阅读时间需要 1 分钟。
1、创建SpringBoot HelloWorld
转载:
2、Spring Boot:内置tomcat启动(不用自己配置tomcat就可以浏览器访问)
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class 转载:解决方法:
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class BdservoApplication { public static void main(String[] args) { SpringApplication.run(BdservoApplication.class, args); } }
3、server.context-path弃用问题
需改为server.servlet.context-path,即可生效。