当数据库中表的结构更改时,需要在项目中重新生成 Mapper,想要用新的 Entity、Mapper.java、Mapper.xml 都覆盖掉,这时会在插件里面配置以下配置: <configuration> <!--配置文件的路径--> <configurationFile>src/main/resources/lib/generatorConfig.xml</configurationFile> <!-- 覆盖 --> <overwrite>…
当数据库中表的结构更改时,需要在项目中重新生成 Mapper,想要用新的 Entity、Mapper.java、Mapper.xml 都覆盖掉,这时会在插件里面配置以下配置: <configuration> <!--配置文件的路径--> <configurationFile>src/main/resources/lib/generatorConfig.xml</configurationFile> <!-- 覆盖 --> <overwrite>…
Maven 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> ElasticsearchRepository<T, ID> Spring 提供的便捷操作 Dao 层接口,通过继承此接口可以实现简单的增删改查操作。 T…
下载 & 安装 & 启动 下载地址 安装:解压即可,集群的话就多 Copy 几份 启动:${软件根目录}/bin/elasticsearch 配置 # ======================== Elasticsearch Configuration ========================= # # NOTE: Elasticsearch comes with reasonable defaults for most settings. # Before you set out to…