logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

yaml的ScannerException:while scanningfor thenext token found character '@' that cannot start anytoken

org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token错误日志:Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next tokenfound character '@' that ...

#spring boot#spring#java
JS中map直接转换成json时数据为空解决方案

1.先将map转换成obj,然后再转换成jsonstrMapToObj(strMap){let obj= Object.create(null);for (let[k,v] of strMap) {obj[k] = v;}return obj;}/***map转换为json*/mapToJson(map) {...

#json#python#大数据 +1
springboot项目中layui的字体图标显示不出来

问题描述:在使用layui开发页面时,js和css路径正确,包结构也跟官网的一样,但是图标就是出不来,像下图中一样。问题定位:F12开发者控制台打印如下日志:问题分析:这是因为经过maven的filter,会破坏font文件的二进制文件格式,所以前台解析出错解决方案:pom.xml中加上这个插件<!--解决图标不能回显问题--><plugi...

#java#maven#css +1
springboot项目当install到本地仓库时,无法被其他项目引用问题解决方案

maven项目的install到本地仓库,无法被其他项目引用问题解决方案pom.xml中去掉这个插件:<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin&l...

#maven#java#spring +1
对WebMvcConfigurationSupport类的理解

对WebMvcConfigurationSupport类的理解官方介绍This is the main class providing the configuration behind the MVC Java config.It is typically imported by adding {@link EnableWebMvc @EnableWebMvc} to an applicati..

记一次微服务的Feign接口调用404异常

异常的报错信息通常有以下几种:feign.FeignException: status 404 readingJson exception:syntax error 404 等等(主要报错信息)问题的根源是:消费者找不到想要调用的方法,也就是你定义的 Feign 客户端接口与被调用接口不一致。要么是请求方式、请求路径不匹配,要么就是参数不匹配,只要认真核对,不难纠正错误。下面举一个网...

#java#spring
spring-boot的单元测试中,@Before不被执行的原因

我们先来看下笔者的单元测试的依赖版本:<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.2.6...

#单元测试#junit#bug +2
LocalDateTime造成的java对象反序列化出错的问题

解决方案:redisConfig配置类:package cn.suvue.discipline.core.config;import com.fasterxml.jackson.annotation.JsonAutoDetect;import com.fasterxml.jackson.annotation.JsonTypeInfo;import com.fasterxml.jacks...

mysql中union,union all 与order by 的常见用法

注意点:多个复合查询使用一个orderby时,注意用AS后的属性名才行!例如:SELECT user_name AS userName,sco_re AS score FROM t1 WHERE user_name LIKE '王%'UNIONSELECT user_name AS userName,sco_re AS score FROM t1 WHERE user_name LIK...

#mysql#java#sql +1
到底了