logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

设计模式——单例模式

单例模式单例模式的意图是确保一个类有且仅有一个实例,并为它提供一个全局访问点对象具有唯一性并不意味着使用了单例模式单例模式通过隐藏构造函数,提供对象创建的唯一入口点,从而将类的职责集中在类的单个实例中...

#设计模式#单例模式
Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backflash to be included

2020-10-24json传html代码时报错:Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backflash to be included in string value解决方法:spring.jackson.parser.allow-unquoted-control-chars=true

#java#spring boot#json
mybatis Could not find resource 找不到Mapper.xml

2020-04-28IDE:IntelliJ IDEA前提条件:存放mapper.xml的文件夹放在src/main/resources目录下,其他相关配置正确问题:找不到mybatis-config.xml中配置的mapper.xmljava.io.IOException: Could not find resource …原因:创建一个java类时,用xxx.xxx.xxx的形式...

#mybatis#xml
javabean的存放位置

2020-04-25问题:使用<jsp:useBean>时出现异常:org.apache.jasper.JasperException: Unable to compile class for JSP原因:作为javabean的类(至少在本例中,是<jsp:useBean>的class属性所指的类)不能直接放在source文件夹下,必须放在包(package)中...

到底了