博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SpringBoot(一)创建HelloWorld和报错解决
阅读量:4101 次
发布时间:2019-05-25

本文共 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,即可生效。

你可能感兴趣的文章
MODULE_DEVICE_TABLE的理解
查看>>
No devices detected. Fatal server error: no screens found
查看>>
db db2_monitorTool IBM Rational Performace Tester
查看>>
postgresql监控工具pgstatspack的安装及使用
查看>>
【JAVA数据结构】双向链表
查看>>
【JAVA数据结构】先进先出队列
查看>>
谈谈加密和混淆吧[转]
查看>>
乘法逆元
查看>>
Objective-C 基础入门(一)
查看>>
通过mavlink实现自主航线的过程笔记
查看>>
Flutter Boost的router管理
查看>>
iOS开发支付集成之微信支付
查看>>
Koa2框架原理解析和实现
查看>>
C++模板
查看>>
【C#】如何实现一个迭代器
查看>>
【C#】利用Conditional属性完成编译忽略
查看>>
hbase(1)---概述
查看>>
hbase(5)---API示例
查看>>
SSM-CRUD(1)---环境搭建
查看>>
Nginx(2)---安装与启动
查看>>