摘要:        
在pom文件的build节点中添加这个插件的引用: maven install 得到的jar包直接可以运行 java -jar **    阅读全文
posted @ 2019-08-28 15:01
jeremy1888
阅读(1385)
评论(0)
推荐(0)
        
            
        
        
摘要:        
除了常见的application.properties文件中设置#设置spring-boot 编码格式banner.charset=UTF-8server.tomcat.uri-encoding=UTF-8spring.http.encoding.charset=UTF-8spring.http.e    阅读全文
posted @ 2019-08-28 14:26
jeremy1888
阅读(838)
评论(0)
推荐(0)
        
            
        
        
摘要:        
SpringBoot,在做全局异常处理的时候,返回中文字符串时,出现乱码情况,网上查阅资料之后,解决方式如下所示,自定义WebConfiguration继承WebMvcConfigurationSupport类(用的是SpringBoot2.0)。(之前返回json串时遇到乱码问题,是在@Reque    阅读全文
posted @ 2019-08-28 14:24
jeremy1888
阅读(2150)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号