Easter79 Easter79
3年前
springcloud文件上传文件名乱码
问题multipartfile取出来的文件名中文乱码。排查问题:单独的server文件上传有无问题gateway访问文件上传有无问题gateway的/zuul访问是否有问题配置spring:http:encoding:charset:UTF
Easter79 Easter79
3年前
spring事务传播性(PROPAGATION)
spring事务传播性PROPAGATION\_REQUIRED简介加入当前已有事务;只有当前没有事务才启一个新的事务设计类ServiceA,方法methodA,事务级别定义为PROPAGATION_REQUIRED类ServiceB,方法method
Stella981 Stella981
3年前
MongoDB在spring中xml传统配置
背景旧项目中依然在使用springmvc的xml传统配置,最近需要使用MongoDB,需要在spring引入MongoDB的连接配置。解决配置mongodb数据库<?xmlversion"1.0"encoding"UTF8"?<beansxmlns"http://www.
Stella981 Stella981
3年前
Spring Boot 整合 JdbcTemplate 多数据源
学习在SpringBoot中使用JdbcTemplate多数据源来操作不同的数据库。JdbcTemplate是Spring自带的,虽然功能没有MyBatis强大,但使用简单。1创建工程并配置新建SpringBoot项目springbootjdbctemplatemulti,添加Web/J
Stella981 Stella981
3年前
Spring Cloud Eureka 全解 (4)
本文基于SpringCloudDalston.SR5(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fcloud.spring.io%2Fspringcloudstatic%2FDalston.SR5%2F)关于服务与实例列表获取EurekaC
Stella981 Stella981
3年前
Spring Boot的exit code
文章目录SpringBoot的exitcode(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fsuperfjj%2Farticle%2Fdetails%2F104290745%23Spring_Bootexit_code_5)
Easter79 Easter79
3年前
Springboot引用外部配置文件
Springboot官方文档(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fdocs.spring.io%2Fspringboot%2Fdocs%2FcurrentSNAPSHOT%2Freference%2Fhtmlsingle%2F%23bootfeaturesexte
Stella981 Stella981
3年前
OncePerRequestFilter的作用
在spring中,filter都默认继承OncePerRequestFilter,但为什么要这样呢?OncePerRequestFilter顾名思义,他能够确保在一次请求只通过一次filter,而不需要重复执行。publicfinalvoiddoFilter(ServletRequestrequest,ServletResponse