自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 HttpMessageNotWritableException: No converter for [class com.xxx.Xxx] with preset Content-Type ‘null

org.springframework.http.converter.HttpMessageNotWritableException: No converter for xxx with preset Content-Type 'null'

2023-05-27 11:50:03 5525

原创 Springbot启动报错-类文件具有错误的版本 61.0, 应为 52.0

Springbot启动报错 类文件具有错误的版本 61.0, 应为 52.0

2023-03-02 10:45:26 385

转载 关于docker中mysql的配置文件

docker中的mysql配置文件挂载总是失效?

2023-02-21 22:24:30 4094

原创 Cannot convert string ‘\xAC\xED\x00\x05sr...‘ from binary to utf8mb4

Cannot convert string '\xAC\xED\x00\x05sr...' from binary to utf8mb4

2022-09-21 13:27:33 7364 1

原创 继承 WebMvcConfigurerAdapter 和 WebMvcConfigurationSupport 的区别

spring 5.0 之前,配置类继承WebMvcConfigurerAdapter,如果加@EnableWebMvc注解,则为全面接管SpringMVC,否则为自定义扩展配置spring 5.0 之后,全面接管SpringMVC,需要继承WebMvcConfigurationSupport,而自定义扩展配置则需要实现WebMvcConfigurer接口...

2022-06-16 10:02:52 1001

原创 Typora提示测试版过期

The beta version of typora is expired, please download and install a newer version解决:删掉以下两个文件夹:一劳永逸的解决方式:bat 脚本:typora-clear.batcd "C:%HOMEPATH%\AppData\Roaming\Typoradel "typora.log"del "profile.data"将bat脚本放在开机自启目录即可:C:\ProgramData\Micr

2022-05-29 20:26:08 6710 15

原创 org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session f

报错原因:web.xml中加入了以下代码: <!--事物开启到视图层 --><filter> <filter-name>SpringOpenSessionInViewFilter</filter-name> <filter-class>org.springframework.orm.hibernate5.support.OpenSessionInViewFilter</filter-class&...

2021-07-30 16:23:18 561

原创 获取List集合中最大的日期时间

导包:import java.util.*;List集合:List<Date> lds = new ArrayList<>();取该集合中的最大日期:Date maxDate = Collections.max(lds);参考:https://blog.csdn.net/weixin_33587731/article/details/114805426

2021-05-25 19:27:18 4514

原创 maven pom.xml头部 http://maven.apache.org/POM/4.0.0 报错解决

报错如图:解决:将 https改成 http,如图:

2021-04-24 10:40:57 3261 2

原创 判断文件是否写入完毕

情景:用sqlldr导入数据入库时会产生一些日志,在入库未完成时,日志是大小为0的空文件,能通过日志大小判断是否入库完成/** * 等待文件有数据且已写完 * 费时操作 放在子线程中执行 * * @param file 文件 * @param start 需要传入 System.currentTimeMillis(),用于兼容遍历的情况 * @return true:已写完 false:外部程序阻塞或者文件不存在 */ p

2021-04-22 00:35:19 1715 2

原创 hibernate的@IndexColumn注解已弃用

在新版本中,此注解@IndexColumn已被废弃@IndexColumn(name = "orders",base = 100)使用下面两个注解取代@OrderColumn(name = "orders")//表示索引列名为patient_name@ListIndexBase(100)//表示索引从100开始参考:https://blog.csdn.net/qwe6112071/article/details/51140021...

2021-04-12 14:03:15 727

原创 Navicat连接oracle失败:Error - OCI_INVALID_HANDLE

原因:突然断电或者把oracle进程杀掉了解决:将以下命令保存为.bat脚本文件,运行一下for /f %%i in ('reg query HKCU\Software\Classes\CLSID') do call:checkDelCLSID %%i reg delete HKCR\NavicatProfileBackup /f 1>nul 2>nul reg delete HKCR\NavicatProfileBatchJob /f 1>nul 2>nulre

2020-11-11 00:34:30 7691

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除