Wesley13 Wesley13
4年前
java8 中 ImageIO 读取 tiff 格式的图片失败
在java8及之前版本中,jdk中的ImageIO读取图片内容会失败,解决办法使用java9或者使用第三方插件。插件可以使用TwelveMonkeysImageIO,地址:https://github.com/haraldk/TwelveMonkeys使用方法,在maven中添加依赖<dependency
Easter79 Easter79
4年前
springboot使用hibernate validator校验
hibernatevalidatorBean验证器在开发中常用,这里我们说说它在springboot中的使用第一步:引入配置@BeanpublicMethodValidationPostProcessormethodValidationPostProcessor(){MethodValid
Stella981 Stella981
4年前
RestTemplate使用
自定义HttpHeader和HttpBodyGET请求构造HttpHeaders对象,主要是安全验证HttpHeadersheadersnewHttpHeaders();headers.add("Date",auth.get(0));headers.
Stella981 Stella981
4年前
SpringBoot实践:使用@Validated相关异常
在使用SpringBoot集成@Validated验证的时候,报出如下错误javax.validation.UnexpectedTypeException:HV000030:Novalidatorcouldbefoundforconstraint'org.hibernate.validator.constraints.NotBlank
Stella981 Stella981
4年前
IdentityServer4环境部署失败分析贴(一)
前言:在部署Idv4站点和其客户端在外网时,发现了许多问题,折腾了许久,翻看了许多代码,写个MD记录一下。1.受保护站点提示错误:Unabletoobtainconfigurationfrom:'\PIIishidden\'.fail:Microsoft.AspNetCore.Server.Kes
Easter79 Easter79
4年前
SpringBoot实践:使用@Validated相关异常
在使用SpringBoot集成@Validated验证的时候,报出如下错误javax.validation.UnexpectedTypeException:HV000030:Novalidatorcouldbefoundforconstraint'org.hibernate.validator.constraints.NotBlank
Wesley13 Wesley13
4年前
@transactional注解,报错后数据库操作回滚失败
1. https://jingyan.baidu.com/article/3a2f7c2e27d51b26afd611ff.html(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fjingyan.baidu.com%2Farticle%2F3a2f7c2e27d51b26afd611f
Python进阶者 Python进阶者
2年前
Python -Flask HTML <img 显示本地图片失败,怎么破?
大家好,我是皮皮。一、前言前几天在Python白银群【膨】问了一个Flask图片显示的问题,这里拿出来给大家分享下。运行之后图片加载不出来。二、实现过程这里【此类生物】给了一个思路,flask运行当前路径是主程序路径,把图片路径改成绝对路径。结果页面还是加
程序员小五 程序员小五
2年前
语音消息使用 remote 地址在 android 手机上播放失败
由于remote地址中有特殊字符,导致播放报错,可以把地址使用encodeURI转换后即可正常播放。示例代码letinnerAudioContextuni.createInnerAudioContext();innerAudioContext.autopl