
java
Aniohevotach
新手
展开
-
Swagger API 信息泄露漏洞解决方案
Swagger API 信息泄露漏洞解决方案原创 2023-02-24 11:36:17 · 21399 阅读 · 0 评论 -
Alibaba Druid 未授权访问解决方案
Alibaba Druid 未授权访问解决方案原创 2023-02-24 11:28:19 · 1169 阅读 · 0 评论 -
@Scheduled定时重复执行两次
@Scheduled重复执行原创 2022-07-12 11:53:27 · 1571 阅读 · 0 评论 -
MyBatisPlus中使用 @TableField完成字段自动填充
本意是为了自动填充创建时间以及编辑时间,查看个网上的文档之后写上去竟然无效(不是文档有问题,而是我理解错误)根据网上的介绍添加jar包<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.1.1</version></dep.原创 2021-10-29 13:27:46 · 553 阅读 · 0 评论 -
Caused by java.time.zone.ZoneRulesException Unknown time-zone ID CTT
Caused by java.time.zone.ZoneRulesException Unknown time-zone ID CTT高版本的MySQL已经不需要填写serverTimezone=CTT,去掉就可以了!原创 2021-10-25 09:58:20 · 2663 阅读 · 1 评论 -
springboot 启动报错(Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded )
springboot 启动报错Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.09:49:59 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - ***************************APPLICATION FAILED TO START*****原创 2021-10-25 09:56:26 · 507 阅读 · 0 评论 -
itextpdf 生成表格pdf+背景图片(可转图片)
itextpdf生成表格pdf+背景图片(可转图片)导入jar,manven引用 <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.13</version> </dependency> <!--原创 2021-06-21 10:22:59 · 1604 阅读 · 0 评论 -
java获取当前日期,前一天日期时间戳
直接上代码 ZoneId z = ZoneId.systemDefault();//获取时区 ZonedDateTime dt = ZonedDateTime.now(z);//获取当前时间 long start = dt.toLocalDate().atStartOfDay(z).toEpochSecond()*1000;//获取当天的起始时间戳 long end=start+(23L*3600+1L*3599)*1000;//获取当天的结束时间原创 2021-03-16 17:38:30 · 4333 阅读 · 0 评论 -
idea配置多数据源
idea配置多数据源maven配置多数据支持<dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <version>2.4.2</version> </dep.原创 2021-02-20 17:11:50 · 3373 阅读 · 4 评论 -
接入wps实现预览功能
接入wps实现预览功能1:wps官网地址:https://open.wps.cn/docs/wwo/access/sdk-demo选择下载对应的开发语言DEMO(需要注册,并生成文档预览)2:拿到注册后的文件,并新建预览编辑服务(保证地址为外网访问)3:直接前端访问所下载的demo(放入自己的项目中)$.ajax({ type: "", dataType:"json", cache:false, .原创 2021-02-23 13:15:40 · 4416 阅读 · 1 评论 -
http请求发送xml文件
try { URL url = new URL(""); //构建基础配置 //发送Request消息 HttpURLConnection con = (HttpURLConnection)url.openConnection(); con.setConnectTimeout(3000000); con.setReadTimeout(3000原创 2021-03-05 17:36:38 · 1779 阅读 · 0 评论