12 2021 档案
摘要:SpringBoot 解决跨站脚本漏洞(XSS)问题 解决方案 步骤如下: 1、添加maven依赖 在 pom.xml 文件中,增加如下依赖: <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-servlet-a
阅读全文
摘要:从数据库中取时间值,报错:java.sql.Timestamp cannot be cast to java.lang.Long 1、问题描述 将数据库中的查询到的 timestamp类型的数据,转成 Long类型报错。 String type = result.getClass().getName
阅读全文