![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 56
tcoding
这个作者很懒,什么都没留下…
展开
-
Spring中@Valid和@Validated注解的区别
Spring中@Valid和@Validated注解的区别原创 2022-11-03 14:15:54 · 99 阅读 · 0 评论 -
springcloud注册中心eureka、consul、nacos、zk总结
springcloud注册中心eureka、consul、nacos、zk总结原创 2022-10-21 16:17:38 · 985 阅读 · 0 评论 -
基于docker搭建seata对接nacos和mysql
基于docker搭建seata对接nacos和mysql原创 2022-09-28 10:53:55 · 1460 阅读 · 0 评论 -
springboot整合elasticsearch
springboot整合elasticsearch原创 2022-09-13 19:53:58 · 1109 阅读 · 0 评论 -
springboot整合mongodb
springboot整合mongodb原创 2022-09-13 19:44:22 · 363 阅读 · 0 评论 -
springboot整合shardingsphere JDBC,雪花算法
springboot整合shardingsphere JDBC,雪花算法原创 2022-09-13 19:06:32 · 891 阅读 · 0 评论 -
spring boot 2.7 集成 swagger 3
springboot2.7+swagger3.0原创 2022-08-27 19:29:33 · 3834 阅读 · 3 评论 -
Spring多次request.getReader()解决方法
Spring多次request.getReader()解决方法ServletRequest的getReader和getInputStream只能调用一次开发中遇到一个需求,对http请求进行打点,其中有个字段是请求body本来想的是写一个拦截器拦截所有请求,读取请求中的body,然后写入MQ StringBuilder data = new StringBuilder(); String line; BufferedReader reader;原创 2021-10-15 16:50:53 · 2615 阅读 · 1 评论 -
Spring MVC配置 EnableWebMvc,WebMvcConfigurationSupport,WebMvcAutoConfiguration
Spring MVC配置@EnableWebMvc声明@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.TYPE)@Documented//注意这里@Import(DelegatingWebMvcConfiguration.class)public @interface EnableWebMvc {}DelegatingWebMvcConfiguration是WebMvcConfigurationSupport的子类注释根原创 2021-03-11 16:26:14 · 1020 阅读 · 0 评论 -
前后台日期交互总结(Spring MVC)
前后台日期交互总结(Spring MVC)前后台日期转换的工具Jackson、FastJson等我使用的是FastJson,SpringBoot默认集成了FastJson,因为之前一直用的FastJson也没碰到过什么bug,就记录FastJson使用后台 -------> 前台(序列化)@ResponseBody自动返回值序列化,需要配置@Configurationpubl...原创 2019-01-16 13:27:03 · 323 阅读 · 0 评论 -
前后台日期交互总结(Spring MVC)
前后台日期交互总结(Spring MVC)前后台日期转换的工具Jackson、FastJson等我使用的是FastJson,SpringBoot默认集成了FastJson,因为之前一直用的FastJson也没碰到过什么bug,就记录FastJson使用后台 -------> 前台(序列化)@ResponseBody自动返回值序列化,需要配置@Configurationpubl...原创 2019-01-16 13:27:04 · 300 阅读 · 0 评论 -
普通类获取Spring容器中的Bean
普通类获取Spring容器中的Bean方式一@Componentpublic class SpringApplicationContextHolder implements ApplicationContextAware { private static ApplicationContext applicationContext; @Override public void setA...原创 2019-01-15 15:27:04 · 188 阅读 · 0 评论 -
Mybatis-Plus使用笔记(SpringBoot版)
Mybatis-Plus使用笔记(SpringBoot版)配置启动类上配置@MapperScan扫描mapper接口application.ymlmybatis-plus: #配置文件配置在mybatis-plus mapper-locations: classpath:mapper/**/*Mapper.xml # 存放映射mapper文件 扫描Mapper.xml结尾的文件 ...原创 2019-01-09 17:00:56 · 297 阅读 · 0 评论 -
springboot普通类中如何获取session
Spring中普通类中如何获取session项目中日志功能:记录所有通过后台操作的记录,记录项有时间、操作员、功能模块、操作内容写了一个基于注解方式的aop,实现日志功能使用shiro的话可以直接获取到用户的token,然后获取到用户登录信息可是项目中没有使用token,使用的是session绑定登录信息,需要在@Aspect中获取到用户信息解决方案 HttpServletReq...原创 2019-01-11 11:01:28 · 20275 阅读 · 0 评论 -
SpringBoot 文件上传(可配置文件上传路径)
SpringBoot 文件上传(可配置文件上传路径)1. 在application.yml中配置文件上传路径 ,上传文件大小application: #版本 version: 1.0.0 #文件上传路径 profile: D:/profile/ spring:servlet: multipart: max-file-size: 30MB max-req...原创 2018-12-20 15:58:09 · 35095 阅读 · 4 评论 -
SpringBoot banner替换装逼神器
SpringBoot banner替换装逼神器////////////////////////////////////////////////////////////////////// _ooOoo_ //// o8888888o ...原创 2018-12-14 16:18:10 · 709 阅读 · 0 评论 -
SpringBoot项目打成war包部署到Tomcat
修改pom.xml文件添加Tomcat依赖包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-s原创 2018-08-17 13:21:18 · 1236 阅读 · 0 评论 -
学习资源网站SpringBoot
重点推荐:Spring Boot 中文索引推荐博客 纯洁的微笑 程序猿DD liaokailin的专栏 Spring Boot 揭秘与实战 系列 catoop的专栏 简书Spring Boot专题 方志朋Spring Boot 专栏 Sp...转载 2018-08-16 16:40:05 · 1376 阅读 · 0 评论 -
pagehelper使用笔记
上个月自己写的demo使用到了pagehelper,现在想想怎么用的有点模糊,还是记录一下集成SSM导包 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper原创 2018-08-14 13:55:59 · 270 阅读 · 0 评论