- spring boot应用启动时,报不要使用@符号的错误: … Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@’ that cannot start any toke... spring boot应用启动时,报不要使用@符号的错误: … Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@’ that cannot start any toke...
- @ComponentScan(basePackages={"com.xx.common.core.config.mq"})public class ProductApplication { public static void main(String[] args) { SpringApplication.run(ProductApp... @ComponentScan(basePackages={"com.xx.common.core.config.mq"})public class ProductApplication { public static void main(String[] args) { SpringApplication.run(ProductApp...
- SpringBoot系列: Json的序列化和反序列化 1. @JsonIgnoreProperties的用法 @JsonIgnoreProperties(value = { "prop1","prop2" }) 用来修饰Pojo类, 在序列化和反序列化的时候忽略指定的属性, 可以忽略一个或多个属性. @JsonIgno... SpringBoot系列: Json的序列化和反序列化 1. @JsonIgnoreProperties的用法 @JsonIgnoreProperties(value = { "prop1","prop2" }) 用来修饰Pojo类, 在序列化和反序列化的时候忽略指定的属性, 可以忽略一个或多个属性. @JsonIgno...
- https://www.jb51.net/article/145125.htm public <T> T registerBean(String name, Class<T> clazz, Object... args) { BeanDefinitionBuilder beanDefinit... https://www.jb51.net/article/145125.htm public <T> T registerBean(String name, Class<T> clazz, Object... args) { BeanDefinitionBuilder beanDefinit...
- SpringBoot旧版集成Redis集群 pom <!-- redis --> <!-- <dependency>--> ... SpringBoot旧版集成Redis集群 pom <!-- redis --> <!-- <dependency>--> ...
- 服务端跨域处理过滤器,该过滤器需要依赖cors-filter-2.2.1.jar和java-property-utils-1.9.1.jar package com.filter; import java.io.IOException;import javax.servlet.FilterChain;im... 服务端跨域处理过滤器,该过滤器需要依赖cors-filter-2.2.1.jar和java-property-utils-1.9.1.jar package com.filter; import java.io.IOException;import javax.servlet.FilterChain;im...
- 一.原因 编写一个服务类的工具类,想做成一个灵活的配置,各种唯一code想从配置文件中读取,便有了这个坑。 二.使用@value获取值为null, 这是因为这个工具类没有交给spring boot 来管理,导致每次都是new 一... 一.原因 编写一个服务类的工具类,想做成一个灵活的配置,各种唯一code想从配置文件中读取,便有了这个坑。 二.使用@value获取值为null, 这是因为这个工具类没有交给spring boot 来管理,导致每次都是new 一...
- SpringBoot RocketMQ发布订阅 pom <!-- rocketMQ--> <dependency> &... SpringBoot RocketMQ发布订阅 pom <!-- rocketMQ--> <dependency> &...
- Springboot 使用AOP及全局事件 一、AOP AOP为Aspect Oriented Programming的缩写,意为:面向切面编程,通过预编译方式和运行期间动态代理实现程序功能的统一维护... Springboot 使用AOP及全局事件 一、AOP AOP为Aspect Oriented Programming的缩写,意为:面向切面编程,通过预编译方式和运行期间动态代理实现程序功能的统一维护...
- SpringBoot 使用 ElasticSearch 6.x搜索引擎 一、介绍 Elasticsearch (ES)是一个基于Lucene构建的开源、分布式、RESTful 接口全文搜索引擎。Ela... SpringBoot 使用 ElasticSearch 6.x搜索引擎 一、介绍 Elasticsearch (ES)是一个基于Lucene构建的开源、分布式、RESTful 接口全文搜索引擎。Ela...
- 一、JPA 对象-关系映射(Object/Relation Mapping,简称 ORM),是随着面向对象的软件开发方法发展而产生的。面向对象的开发方法是当今企业级应用开发环境中的主流开发方法,关系数据... 一、JPA 对象-关系映射(Object/Relation Mapping,简称 ORM),是随着面向对象的软件开发方法发展而产生的。面向对象的开发方法是当今企业级应用开发环境中的主流开发方法,关系数据...
- SpringBoot2.2.X及2.3.X 集成 SpringCloud 一、pom <!-- spring cloud eureka 注册中心--> <dependency>... SpringBoot2.2.X及2.3.X 集成 SpringCloud 一、pom <!-- spring cloud eureka 注册中心--> <dependency>...
- 在JPA中提供了很方便的分页功能,那就是Pageable(org.springframework.data.domain.Pageable)以及它的实现类PageRequest(org.springframework.data.domain.PageRequest),详细的可以见示例代码。 1、改变CustomerRepository... 在JPA中提供了很方便的分页功能,那就是Pageable(org.springframework.data.domain.Pageable)以及它的实现类PageRequest(org.springframework.data.domain.PageRequest),详细的可以见示例代码。 1、改变CustomerRepository...
- 百度发现有个filter 方法 SimplePropertyPreFilter SimplePropertyPreFilter filter = new SimplePropertyPreFilter(); filter.getExcludes().add("name"); filter.getExcludes().a... 百度发现有个filter 方法 SimplePropertyPreFilter SimplePropertyPreFilter filter = new SimplePropertyPreFilter(); filter.getExcludes().add("name"); filter.getExcludes().a...
- SpringBoot多文件上传 一、文件上传 @PostMapping("/fileUpload") public ResponseTemplate handleFormUploadFile(... SpringBoot多文件上传 一、文件上传 @PostMapping("/fileUpload") public ResponseTemplate handleFormUploadFile(...
上滑加载中
推荐直播
-
华为云码道Agent集成与鸿蒙实战2026/08/11 周二 19:00-21:00
王一男-华为云码道产品规划专家;李炎-华为云码道产品专家;彭江敏-华为云鸿蒙端云一体化开发专家
本次直播带你解读华为云码道7月份产品新特性、新功能。更有专家演示码道Agent Space × 钉钉机器集成实战,从0到1打通消息通道;码道鸿蒙端云一体化实战,快速搭建员工签到系统。
回顾中 -
华为云开发者AI素养直播课·第五期2026/09/04 周五 16:00-18:00
林华鼎-华为云AI开发者运营负责人;蒋春阳-华为云AI开发者案例开发专家
本期直播内容: AI工具体验营 · 第5-8课连讲。Agent-Team 多智能体协作完成毕业设计实践
回顾中 -
华为云开发者AI素养ClassRoom·第六期2026/09/08 周二 19:00-20:00
樊渊-2026华为软件挑战赛冠军
高手来了:看软挑高手解析二维排样问题—从工业难题到算法突破
回顾中
热门标签