logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

@Slf4j是什么

@Slf4j是用来打印日志的,相当于下面这行代码。private final Logger logger = LoggerFactory.getLogger(当前类名.class);@Slf4j是添加在类上的注解,使用如下@Service@Slf4jpublic class TestServiceImpl implements TestService {@Overridepublic String

#java#开发语言#后端
org.springframework.web.util.NestedServletException: Request processing failed;空指针

问题描述:org.springframework.web.util.NestedServletException在使用maven创建ssm项目时,出现空指针错误根据网友高赞答案https://blog.csdn.net/zcy_wxy/article/details/90546357依次检查了注解信息,配置信息后发现没有问题org.springframework.web.util.NestedSe

#maven
okhttp3.RequestBody.create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody

okhttp3.RequestBody.create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;这个错是maven冲突了,配置一下就好了<dependency><groupId>org.web3j</groupId><artifactId>core</artifactI

#java#开发语言#后端
报错解决Error parsing Mapper XML

Error parsing Mapper XML这个报错本质来说是mapper.xml出现错误相同的还有 failed resolve xxx.xml等这里分析一些编写时不会明显爆红,启动报错的问题1、id冲突这里出现的冲突有resultMap<resultMap type="com.newtouch.business.module.dto.T01agentComDTO" id="t01ag

#java#intellij-idea#开发语言
SpringBoot中的@Data注解

在SpringBoot使用过程中,@data注解十分好用平时我们定义一个实体类的话,需要重写它的构造方法、get、set、toString、hashcoe、equals等方法,这都占用了大量的篇幅而使用@Data注解则可以自动装配这些方法我们先看一下源码@Data is a convenient shortcut annotation that bundles the features of@To

#java#spring boot#restful
报错Consider defining a bean of type ‘com.xxx.service.Service‘ in your configuration.

springboot项目启动报错Description:Field districtService in com.imp.controller.impDocController required a bean of type 'com.imp.service.impDocService' that could not be found.The injection point has the fol

#spring boot#java#spring
报错Consider defining a bean of type ‘org.springframework.http.codec.ServerCodecConfigurer‘

springBoot项目启动报错Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.#[core-DESKTOP-7MF0MCO.log]# 2021-10-18 17:56:22 ERROR [main] org.sprin

#http#spring boot#java
spring关于缓存的注解使用@CacheConfig,@Cacheable,@CachePut,@CacheEvict,@Caching

总述目前的spring boot项目使用到了redis缓存,再次记录一下关于缓存的注解主要用到的是这四个import org.springframework.cache.annotation.CacheConfig;import org.springframework.cache.annotation.CacheEvict;import org.springframework.cache.anno

#缓存#spring#redis
Temporary failure resolving ‘mirrors.aliyun.com‘

Failed to fetch http://mirrors.aliyun.com/debian/dists/wheezy/InRelease Temporary failure resolving ‘mirrors.aliyun.com’在进行安装vim的时候输入命令apt-get update结果报错Failed to fetch http://mirrors.aliyun.com/debia

#linux
JDBCType对应类型及使用方式

JDBCType对应类型及使用方式数据库对应类型java对应类型JDBC TypeJava TypeCHARStringVARCHARStringLONGVARCHARStringNUMERICjava.math.BigDecimalDECIMALjava.math.BigDecimalBITbooleanBOOLEANbooleanTINYINTbyteSMALLINTshortINTEGERI

#数据库
暂无文章信息