![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
配置类
文章平均质量分 88
缌唸
这个作者很懒,什么都没留下…
展开
-
使用idea创建maven项目,配置spring和springmvc
1、添加依赖<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <原创 2020-12-22 14:08:21 · 127 阅读 · 0 评论 -
spring boot整合swagger
1、创建好spring boot项目以后添加swagger依赖 <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> &l原创 2020-12-14 15:57:38 · 184 阅读 · 0 评论 -
Spring Boot使用@RepeatSubmit 防止重复提交
自定义防止重复提交的注解 @Inherited @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface RepeatSubmit { }防止重复提交的拦截器 @Component public abstract class RepeatSubmitInterceptor extends HandlerInterceptorAdapter {原创 2020-11-20 15:08:57 · 13996 阅读 · 4 评论 -
创建并配置core以及IK 分词器
第二 创建并配置core1、使用命令创建core实例1-1、core的创建方式有很多种,以下列出两种比较方便的:1-1-1、使用命令创建:1-1-2、使用管理员页面创建core实例2、配置schema2-1、schema 主要成员2-2 Schema API3、IK分词器3-1.拷贝jar 包3-2修改并拷贝配置文件3-3、应用分词器3-4、测试分词效果1、使用命令创建core实例1-1、core的创建方式有很多种,以下列出两种比较方便的:1-1-1、使用命令创建:在bin目录下执行solr cre原创 2020-11-12 12:52:58 · 317 阅读 · 0 评论 -
Solr 8-7的安装、配置
第一安装和配置Solr1、Solr单独运行方式2、运行Solr3、Solr常用命令4、Solr+tomcat方式4-1、拷贝web项目:4-2、配置HOME目录4-3、修改web.xml配置4-4、配置solr日志4-5、启动tomcat1、Solr单独运行方式下载最新版solr,地址:http://lucene.apache.org/solr/downloads.htmlzip 文件下载将它解压缩到一个文件夹:Solr的文件夹:bin文件夹中包含用来启动和停止solr服务器的脚本。examp原创 2020-11-12 11:01:58 · 1106 阅读 · 3 评论 -
solr加密以后写入、更新、删除的时候报异常的解决方法
UpdateRequest updateRequest = new UpdateRequest(); updateRequest.setBasicAuthCredentials("solr的账号","solr的密码"); updateRequest.deleteById("9999999"); updateRequest.add("SolrInputDocument的对象"); UpdateResponse process = updateRequest.process(client, ..转载 2020-11-10 15:05:28 · 348 阅读 · 0 评论 -
redis配置远程访问出现的问题
Redis安装的根目录里面找到 redis.windows.conf 和 redis.windows-service.conf注释掉 # bind 127.0.0.1去掉前面的#并设置密码 # requirepass 需要设置的密码把 protected-mode yes 改成 protected-mode no如果是架在阿里云的服务器上面请去阿里云开通端口号,否则也是连接不上。...原创 2020-10-26 13:05:52 · 76 阅读 · 0 评论