- 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(...
上滑加载中
推荐直播
-
HDC深度解读系列 - Serverless与MCP融合创新,构建AI应用全新智能中枢
2025/08/20 周三 16:30-18:00
张昆鹏 HCDG北京核心组代表
HDC2025期间,华为云展示了Serverless与MCP融合创新的解决方案,本期访谈直播,由华为云开发者专家(HCDE)兼华为云开发者社区组织HCDG北京核心组代表张鹏先生主持,华为云PaaS服务产品部 Serverless总监Ewen为大家深度解读华为云Serverless与MCP如何融合构建AI应用全新智能中枢
回顾中 -
关于RISC-V生态发展的思考
2025/09/02 周二 17:00-18:00
中国科学院计算技术研究所副所长包云岗教授
中科院包云岗老师将在本次直播中,探讨处理器生态的关键要素及其联系,分享过去几年推动RISC-V生态建设实践过程中的经验与教训。
回顾中 -
一键搞定华为云万级资源,3步轻松管理企业成本
2025/09/09 周二 15:00-16:00
阿言 华为云交易产品经理
本直播重点介绍如何一键续费万级资源,3步轻松管理成本,帮助提升日常管理效率!
回顾中
热门标签