随笔 - 239  文章 - 0  评论 - 29  阅读 - 69万

随笔分类 -  SpringBoot

自定义注解使用在AOP切面编程里
摘要:自定义注解: @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface RedisDistributeLock { String key(); int leastLockMs() defau 阅读全文
posted @ 2022-12-17 20:44 梦幻朵颜 阅读(62) 评论(0) 推荐(0) 编辑
springboot配置自定义objectMapper
摘要:package com.my.config; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jack 阅读全文
posted @ 2022-12-17 19:29 梦幻朵颜 阅读(1109) 评论(0) 推荐(0) 编辑
springboot项目部署到tomcat启动失败404
摘要:感谢这位老兄:《Spring Boot项目部署到tomcat启动失败404》 我的springboot是2.7.0版本,需要部署到外部的tomcat版本是8.5,部署失败表象: IDEA控制台只打印tomcat启动日志,没有springboot加载日志,访问localhost:8080/根路径/接口 阅读全文
posted @ 2022-12-02 17:56 梦幻朵颜 阅读(1658) 评论(0) 推荐(0) 编辑
docker命令构建Java程序镜像,并运行它
摘要:构建一个叫a-service-docker的docker镜像,注意命令行的最后一个小点不能忽略: docker build -t a-service-docker . 启动a-service-docker镜像,把镜像里的Java程序启动的8080端口,映射到宿主机的8086端口: docker ru 阅读全文
posted @ 2020-12-20 22:19 梦幻朵颜 阅读(982) 评论(0) 推荐(0) 编辑
spring官方文档网址 - https://spring.io/guides
摘要:spring官方文档网址: https://spring.io/guides 这是个好东西~ Springboot 官方网址:https://spring.io/projects/spring-boot 当前已经升级到2.4.1 这也是个好东西~ 阅读全文
posted @ 2020-12-16 09:12 梦幻朵颜 阅读(1550) 评论(0) 推荐(0) 编辑
springboot 2.4.0 最新版本需在本地maven里添加mirror镜像地址
摘要:加上aliyun的镜像地址,我的maven setting.xml 里完整镜像地址如下: <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content 阅读全文
posted @ 2020-11-21 16:07 梦幻朵颜 阅读(2073) 评论(0) 推荐(0) 编辑
SpringBoot项目@WebFilter过滤器urlPatterns配置失效的解决方案,以及多个filter过滤器demo
摘要:版本说明: spring-boot-starter-parent 2.1.11.RELEASE 1:定义两个filter过滤器类 再定义第二个过滤器 MyFilter2,代码同上。 注意:不添加任何注解! 2:filter注册为一个bean 在SpringBoot启动类里添加@Configurati 阅读全文
posted @ 2020-01-02 19:55 梦幻朵颜 阅读(9170) 评论(0) 推荐(1) 编辑
SpringBoot与SpringCloud的版本对应详细版
摘要:在实际开发过程中,我们需要详细到一一对应的版本关系:Spring 官方对应版本地址: (https://start.spring.io/actuator/info),建议用firefox浏览器打开,你会看见格式化好了json信息: 手动记录一些经本人实际验证可行的版本对应: 序号 版本对应 1 <s 阅读全文
posted @ 2019-01-12 21:56 梦幻朵颜 阅读(117008) 评论(5) 推荐(18) 编辑


点击右上角即可分享
微信分享提示