标签 Java 下的文章
Java分页时获取总页数的方法
方法1:Integer totalPage = (int) (total / pageSize + ((total % pageSize == 0) ? 0 : 1));方法2:Integer totalPage = (int) Ma...
注解禁用ElasticSearch7.10.1自动创建索引
ElasticSearch7.10.1,SpringBoot启动时会自动初始化索引及字段,如果无需自动初始化索引,可在注解中声明createIndex = false@Document(indexName = "goods&...
FeignClient报错The bean 'item-service.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.
FeignClient启动报错The bean 'item-service.FeignClientSpecification' could not be registered. A bean with that name has al...
SpringBoot报错Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
SpringBoot启动报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be...
SpringBoot2.x整合Elasticsearch7.x
网上教程多是Elasticsearch旧版本,很多方法已弃用,本文以Elasticsearch 7.10.1,SpringBoot 2.3.6.RELEASE为例说明如何整合:一、添加pom依赖<?xml version=&qu...
使用ElasticSearch 报错 java.lang.IllegalStateException: Received message from unsupported version
使用ElasticSearch启动时报错:表示从不支持的版本接收到的消息:[5.2.2]最小兼容版本是:[5.6.0]java.lang.IllegalStateException: Received message from uns...
Stream语法详解
1. Stream初体验我们先来看看Java里面是怎么定义Stream的:A sequence of elements supporting sequential and parallel aggregate operations.我...
Mybatis-Plus传入实体类查询
@Override public List<SpecParam> queryParamsByGid(Long gid, Long cid, Boolean generic, Boolean searching) { ...
最新回复