![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot
写编程的李白
这个作者很懒,什么都没留下…
展开
-
InvalidDataAccessApiUsageException: Error attempting to get column ‘createTime‘ from result set的异常
springboot项目,关于InvalidDataAccessApiUsageException: Error attempting to get column 'createTime' from result set. Cause: java.sql.SQLFeatureNotSupportedException ; null; nested exception is java.sql.SQLFeatureNotSupportedException的解决办法目录报错原因解决方法今天在转载 2022-04-01 17:52:30 · 4571 阅读 · 0 评论 -
Springboot项目启动报错:NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBean
Springboot项目启动报错:NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBean在spring boot 2.4之后删掉了ConfigurationBeanFactoryMetadata将spring boot版本降级为2.3.9.RELEASE即可解决原创 2021-07-22 14:02:12 · 1073 阅读 · 0 评论 -
springboot中@PostMapping常用说明
PostMapping属性name value 请求路由地址 path 指定路由地址 params 指定request中必须包含某些参数值 headers 指定request中必须包含某些指定的header值 consumes 请求提交内容类型,MediaType方式,如 application/json、application/x-www-urlencode、multipart/form-data等 produces 请求返回的数据类型,仅当request请求头中的(Accept)类型中包转载 2021-06-24 15:21:06 · 3559 阅读 · 0 评论 -
springBoot搭建时遇到的坑之Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded
3.如果写的是yml格式的配置文件,需要注意属性值是否写到了正确的位置(注意格式),如果格式有问题,启动会报错。1.如果在pom文件中添加了有关数据库的依赖时,需要在属性文件中配置连接该库的路径,用户名和密码.。再次启动springboot,日志没有报上面的错误!3.解决方法:添加数据库连接配置。4.再次启动日志没有报错问题解决。此时我没有配置库的连接。转载 2020-11-16 17:26:29 · 271 阅读 · 0 评论 -
springboot常用注解使用详解
对于springboot而言,需要掌握平常使用的注解案例详解如下:@Controller//标明这是一个SpringMVC的Controller控制器;@SpringBootApplication//Spring Boot项目的核心注解,主要目的是开启自动配置。@Configuration//这是一个配置Spring的配置类;public class HelloApplication {...转载 2019-12-05 15:23:11 · 87 阅读 · 0 评论 -
Spring Boot2.0配置Druid数据库连接池(单数据源、多数据源、数据监控)
我这里使用的开发环境是:IDEA(2017),JDK(1.8),Maven(3.3.9),SpringBoot(使用的是2.0.3版本,详细创建过程可以参考:https://blog.csdn.net/qq_38455201/article/details/80742205)一:单数据源的配置以及数据监控第一步:导入maven依赖<!--数据库连接驱动和连接池依赖-->&l...转载 2019-11-07 14:11:15 · 1391 阅读 · 0 评论