当前位置: 首页 > news >正文

宁波市城乡建设委员会网站项目推广方式有哪些

宁波市城乡建设委员会网站,项目推广方式有哪些,做付费网站,网站开发建设文章目录问题一(org.apache.ibatis.session.Configuration)解决方法问题二(ERROR StatusLogger No log4j2)解决方法问题三(com.google.common.util.concurrent)解决方法问题四(start bean documentationPluginsBootstrapper)解决方法问题五(Unable to infer base url. )解决办法…

文章目录

      • 问题一(org.apache.ibatis.session.Configuration)
        • 解决方法
      • 问题二(ERROR StatusLogger No log4j2)
        • 解决方法
      • 问题三(com.google.common.util.concurrent)
        • 解决方法
      • 问题四(start bean 'documentationPluginsBootstrapper')
        • 解决方法
      • 问题五(Unable to infer base url. )
        • 解决办法
      • 问题六(no active profile set)
        • 解决办法
      • 问题七(org/springframework/transaction/ReactiveTransactionManager)
        • 解决方法
      • 问题八(com.fasterxml.jackson.databind)
      • 解决方法
      • 问题九(must be "pom" but is "jar")
        • 解决方法
      • 问题十(For input string: "")
      • 问题十一(com/fasterxml/jackson/databind/JsonNode)
        • 解决方法

问题一(org.apache.ibatis.session.Configuration)

# Correct the classpath of your application so that it contains a single, compatible version of org.apache.ibatis.session.Configuration

解决方法

原因:版本不兼容
解决方法:修改mybatis-3.4.5版本如果有mybatis-spring-boot-starter依赖,里面是版本比较低,需要用mybatis来替换
<!-- 覆盖掉mybatis-spring-boot-starter中的低版本 -->
<dependency><groupId>org.mybatis</groupId><artifactId>mybatis</artifactId><version>3.4.5</version>
</dependency>
<!--缺少此jar包,导致@Mapper注解无效-->
<dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>2.1.3</version><exclusions><exclusion><artifactId>spring-boot-starter</artifactId><groupId>org.springframework.boot</groupId></exclusion></exclusions>
</dependency>

问题二(ERROR StatusLogger No log4j2)

# log4j报错:ERROR StatusLogger No log4j2 configuration file found. Using default configuration

解决方法

1. 查看配置文件中是否加入了配置logging.config=classpath:log4j2.yml
2. 查看是否加入了适配yml文件的依赖
<!-- 适配yml文件 -->
<dependency><groupId>com.fasterxml.jackson.dataformat</groupId><artifactId>jackson-dataformat-yaml</artifactId><version>2.14.2</version>
</dependency>
<dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId><version>2.14.2</version>
</dependency>
<dependency><groupId>org.yaml</groupId><artifactId>snakeyaml</artifactId><version>2.0</version>
</dependency>

问题三(com.google.common.util.concurrent)

# NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor

解决方法

依赖冲突,查看maven依赖

问题四(start bean ‘documentationPluginsBootstrapper’)

# org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException

解决方法

# Spring Boot 版本和swagger版本不一致的情况导致的
Spring Boot版本	    2.5.6
Swagger 版本        2.9.2或者Spring Boot版本	    2.6.5
Swagger 版本        3.0.0

问题五(Unable to infer base url. )

# Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually: 

解决办法

# 需要开启swagger
@EnableSwagger2

在这里插入图片描述

问题六(no active profile set)

# spring boot profile配置和启动时no active profile set, falling back to default profiles: default的问题
# 在application.properties中加入如何配置·
在application.properties中写上spring.profiles.active=dev

解决办法

img

问题七(org/springframework/transaction/ReactiveTransactionManager)

# NoClassDefFoundError: org/springframework/transaction/ReactiveTransactionManager

解决方法

需要查看spring-boot依赖是否重复

问题八(com.fasterxml.jackson.databind)

# java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase

解决方法

版本较低出现问题,换高版本就可以了

问题九(must be “pom” but is “jar”)

# maven的pom文件报错: must be "pom" but is "jar"

解决方法

parent工程的pom.xml文件的project节点下加入如下节点<packaging>pom</packaging>

问题十(For input string: “”)

# Illegal DefaultValue null for parameter type integer和NumberFormatException: For input string: ""
<!-- swagger依赖添加 -->
<dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><exclusions><!--移除swagger-models 1.5.20 依赖,存在Swagger2异常:Illegal DefaultValue null for parameter type integer问题--><exclusion><groupId>io.swagger</groupId><artifactId>swagger-annotations</artifactId></exclusion><exclusion><groupId>io.swagger</groupId><artifactId>swagger-models</artifactId></exclusion><exclusion><artifactId>spring-beans</artifactId><groupId>org.springframework</groupId></exclusion></exclusions>
</dependency>

问题十一(com/fasterxml/jackson/databind/JsonNode)

# java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/JsonNode

解决方法

Jackson包版本冲突导致
http://www.tj-hxxt.cn/news/120556.html

相关文章:

  • 政府网站改版建设报告2022今日最新军事新闻
  • 自己做装修网站需要多少钱网站运营包括哪些内容
  • 企业推广网站网站关键词优化教程
  • 做装饰公司网站6弹窗广告最多的网站
  • 建设银行的英语网站首页推广文章的步骤
  • 做网站多久徐州关键词优化平台
  • 网站的简介怎么在后台炒做软件推广接单平台
  • 怎样查看一个网站的域名营销方式和渠道
  • 上海专业做网站公个人seo怎么赚钱
  • 如何保存自己做的网站网站seo快速排名优化
  • 网站建设 学生作业凡科建站多少钱
  • 巨人时时彩网站开发武汉seo人才
  • 新疆建设厅统计报表网站市场调研报告怎么写的
  • 做现货去哪些网站营销好呢杭州网站seo
  • 大连中山区网站建设网络市场营销
  • 铁岭网站开发免费做网站怎么做网站链接
  • 建设公司哪家好武汉seo关键词排名优化
  • 个人主页网站申请小时seo
  • 网站图片设置方法百度关键词指数
  • wordpress的cms插件杭州哪家seo公司好
  • 网线制作的注意事项seo如何挖掘关键词
  • 五百亿建站模板seo整体优化步骤怎么写
  • WordPress电子书主题模板seo网站推广助理招聘
  • 如果在浏览器上做一网站广告大约需要多少钱尚硅谷培训机构官网
  • 网站怎么做域名实名认证营销方案模板
  • 怎么看域名在哪里注册的海口seo计费
  • 太原网站制作定制开发成都最好的seo外包
  • 网站首页分辨率企业搜索引擎优化
  • 雄安做网站的公司太原百度公司地址
  • 帮你做海报网站网络优化工程师吃香吗