Loading

摘要: 同时使用 Lombok 和 MapStruct,编译运行报错: No qualifying bean of type 'xxx' available: expected at least 1 bean which qualifies as autowire candidate. Dependency 阅读全文
posted @ 2024-05-21 10:58 江南笑书生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 错误描述 在 Spring Cloud 项目中通过 Open Feign 远程调用时出现如下错误: feign.codec.EncodeException: No qualifying bean of type 'org.springframework.boot.autoconfigure.http 阅读全文
posted @ 2023-02-28 20:19 江南笑书生 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 课程内容介绍 尚硅谷 Spring 5 视频地址:https://www.bilibili.com/video/BV1Vf4y127N5 Spring 概念 IoC 容器 IoC 底层原理 IoC 接口(BeanFactory) IoC 操作 Bean 管理(基于xml) IoC 操作 Bean 管 阅读全文
posted @ 2021-01-28 17:30 江南笑书生 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 创建 Spring Boot 项目 利用 IDEA 内置的 Spring Initializr 创建项目,根据需要选择相应的模块,这里已经内置了 MyBatis Framework 选项。 当然你也可以选择手动引入: <!-- https://mvnrepository.com/artifact/o 阅读全文
posted @ 2021-01-11 14:51 江南笑书生 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Spring Boot 文件上传 创建项目 Spring Initializr 创建 Spring Boot 项目,模板引擎选择 Thymeleaf。 项目的 pom.xml 如下: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="htt 阅读全文
posted @ 2021-01-07 20:47 江南笑书生 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 错误场景: 在用 Spring 的单元测试进行模拟请求时遇到下面的错误: java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getAsyncContext()Ljavax/servlet/AsyncContext; 阅读全文
posted @ 2020-11-17 20:27 江南笑书生 阅读(899) 评论(0) 推荐(0) 编辑
摘要: SSM 整合遇到了如下的报错: 严重: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionLi 阅读全文
posted @ 2020-11-16 22:53 江南笑书生 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 使用 <c:forEach> 标签时,取不出数据。一直以为是c标签的问题,折腾了好久,发现是EL表达式失效导致的。 <c:forEach items="${emps}" var="emp"> <tr> <td>${emp.id}</td> <td>${emp.lastName}</td> 阅读全文
posted @ 2020-10-29 15:58 江南笑书生 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 测试 C3P0 数据库连接池时出现异常:java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector 测试代码: public void testConnection() throws Exception { // 获取C3P0数据库连接 阅读全文
posted @ 2020-08-14 20:56 江南笑书生 阅读(216) 评论(0) 推荐(1) 编辑
摘要: MySQL 在创建函数时报如下错误: [HY000][1418] This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled ( 阅读全文
posted @ 2020-08-06 10:57 江南笑书生 阅读(320) 评论(0) 推荐(0) 编辑