logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

springboot tomcat设置https,springboot配置ssl

springboot配置ssl(方案二)生成自签名证书(keyStoreType=PKCS12),命令:keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore D:/keystore.p12 -validity 3650执行命令后,在你的系统的D:/目录下会生成一个key...

#java#https#spring boot +2
Spring RestTemplate调用https,Hutool工具类调用https

Spring RestTemplate调用https (需要有配置信任证书。下一篇博客配置springboot https )Hutool工具类调用https(默认会携带几个头信息,不需要的话可以去掉)package cn.luischen.controller;import cn.hutool.http.Header;import cn.hutool.http.HttpReques...

#https#ssl#http +1
记一次elasticsearch,es修改mapping导致查询失败的错误。

问题是这样的,查询es接口报错,测试环境和正式环境代码一样。测试环境没问题。报错是 fieddata is disabled on text fields by default set fielddata=true on status in order to load fielddata in memory by ...通过查看mapping ,查询的排序字段里面包含了status ,但是...

#elasticsearch#大数据#big data +2
elasticsearch health yellow

csdn博客地址(已测试过):https://blog.csdn.net/yangyangrenren/article/details/81100836官方地址:https://www.elastic.co/guide/cn/elasticsearch/guide/current/_cluster_health.html处理Elasticsearch集群yellow和red状态:...

spring cloud feign 文件上传和文件下载

文件上传参考文档:http://blog.didispace.com/spring-cloud-starter-dalston-2-4/文件下载参考文档:https://blog.csdn.net/aaronsimon/article/details/82710979我的spring boot ,spring cloud 版本是:<parent><g...

mybatis插件怎么获取 Mapper 接口方法@Param注解 Map类型参数,MyBatis 3.5.10 版本

mybatis插件怎么获取 Mapper 接口方法@Param注解 Map类型参数,MyBatis 3.5.10 版本1.在 MyBatis 的配置文件中配置插件。<!-- 配置插件 --><plugins><plugin interceptor="com.example.MyPlugin"><!-- 设置插件属性 -...

#mybatis
springboot 引入jackson-dataformat-xml 接口都返回XML了

springboot版本2.6.10springboot引入ackson Dataformat XML后原本返回json的却返回xml<dependency><groupId>com.fasterxml.jackson.dataformat</groupId><artifactId>jackson-dataformat-xml&l...

#spring boot#xml#java +2
mybatis插入的字符串主键变成了0?

记录一个神奇的事情,之前没这么用过。本来我插入的字符主键 000000,结果插入的SQL显示 0。离谱不?直接说原因,我插入的主键本来有值,但sql写了主键赋值的操作。就是下面这句话。但是这是mybatis反向生成的,没想到会出问题。<selectKey resultType="java.lang.String" keyProperty="snNo" order="BEFORE"...

#mybatis#java#mysql +2
springboot 添加aop controller里面注入的service 是空 null

springboot 添加aop controller里面注入的service 是空 nullController层的RequestMapping方法不能设置private(私有的),这样会导致在动态代理过程中无法注入private对象。这里跟用@Autowire和@Resouce没有关系。就是被设置为私有方法导致的。参考:https://www.cnblogs.com/hjieo...

spring boot 打jar包,获取resource路径下的文件

前言:最近在spring boot项目静态类中获取resource路径下文件,在idea中启动都可以获取,但是打包后变成了jar包 就无法获取到。    我想到了两种方法,一种是根据http访问静态资源比如:localhost:9080/static/template/xxx.ftl文件。    另外一种是根据流获取到文件,然后拷贝到新的文件夹下面。下面说的就是第二种方式的代码...

    共 14 条
  • 1
  • 2
  • 请选择