![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
A 糖醋排骨
这个作者很懒,什么都没留下…
展开
-
【redisson 各种操作】
redisson 各种操作转载 2023-09-15 12:06:59 · 58 阅读 · 0 评论 -
Prometheus PushGateway Grafana SpringBoot k8s
做监控:用 PushGateway 不用在k8s里创建复杂操作相关,rancher管理的k8s已经存在promethus了prometheus 端口 9090 configMap 挂在/etc/prometheus/prometheus.yml 覆盖global: scrape_interval: 5s ##5秒抓取 evaluation_interval: 5s ##5秒报警scrape_configs: - job_name: prometheus stati原创 2021-11-24 10:28:04 · 705 阅读 · 0 评论 -
java excel导出
jar 内部可下载文件在 resources/excelTemplate/下/** * 通用下载请求 * * @param fileName 文件名称 * @param delete 是否删除 */ @GetMapping("file") public ResponseEntity fileDownload(String fileName, Boolean delete, HttpServletResponse response,原创 2021-10-18 16:06:53 · 95 阅读 · 0 评论 -
mongondb 配置连接问题
开启了user和pwd的连接 mongodb: database: qq_his host: 10.10.10.5 port: 27017 username:admin password:admin无密码配置 mongodb: database: qq_his uri: mongodb://10.1...原创 2019-12-26 12:07:55 · 117 阅读 · 0 评论 -
mq 多个key对应一个queue问题
exchange 和 queue 是多对多关系routing key 是关联exchange和queue的外键多个routingkey 对应一个queue。key1,key2,key3 绑定queue1那么程序声明key1,2,3 和queue1的关系bindingkey1的方法可能回收到key2的消息。注意需要自己判断routingkey在做分发String routeKey = m...原创 2019-12-20 09:09:27 · 1618 阅读 · 0 评论 -
mq springboot接收和发送
config@Slf4j@Configurationpublic class RabbitMqConfig { @Bean(name = "simpleRabbitListenerContainerFactory") public SimpleRabbitListenerContainerFactory rabbitListenerContainerFactory(Connecti...原创 2019-12-19 14:17:20 · 91 阅读 · 0 评论 -
soap cxf 客户端 超时 404等问题
许多老系统都使用wsdl为服务,特别是.net系统下面介绍java调用wsdl的示例1、下载cxf客户端2、./wsdl2java -encoding utf-8 -p 包名 -d . -client http://xx.xx.xx.xx/service/?wsdl生成代码3、添加pom<dependency> <groupId>org.apache.cxf...原创 2019-12-03 11:53:03 · 1165 阅读 · 0 评论 -
springboot freeMark 正式环境启动报错
启动jar的springboot应用时发现错误如下: (开发工具没有问题 , 启动方式java -jar xxx.jar )但是不影响正式使用2019-03-21 14:33:52.606 DEBUG 2236 --- [main] o.s.w.s.v.f.FreeMarkerConfigurer : Cannot resolve template loader path [c...原创 2019-03-21 14:56:41 · 883 阅读 · 0 评论 -
WebMvcConfigurerAdapter与WebMvcConfigurer与WebMvcConfigurationSupport与WebMvcAutoConfiguration添加拦截器
首先以上4个类都是springboot中mvc的支持类WebMvcConfigurer 为接口WebMvcConfigurerAdapter 是 WebMvcConfigurer 的实现类大部分为空方法 , 已经废除WebMvcConfigurationSupport 是mvc的基本实现并包含了WebMvcConfigurer接口中的方法WebMvcAutoConfiguration ...原创 2019-03-18 14:59:48 · 1902 阅读 · 1 评论