随笔分类 - Spring
Failed to instantiate [org.apache.tomcat.jdbc.pool.DataSource]
摘要:问题:项目中没有使用db相关的东西,但是在应用启动时报错:Failed to instantiate [org.apache.tomcat.jdbc.pool.DataSource] 原因: pom.xml 中配置了和数据库相关的,Spring Boot启动默认会加载org.springframew
阅读全文
尝试写一个SpringBoot的demo
摘要:在Spring官网使用脚手架: https://start.spring.io/ 选择3项依赖: 编写代码: 启动运行应用: 启动了8080端口 访问: http://localhost:8080/hyc 健康检查: http://localhost:8080/actuator/health
阅读全文