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

河北网站建设报价常州网络公司主营业务

河北网站建设报价,常州网络公司主营业务,logo设计说明模板,哪些网站做推广2.2.11.RELEASE 2.7.4项目更新spring-boot-starter-parent 主依赖#xff0c;导致项目跑不起了日志也没有输出有用信息#xff0c;自己查看源码调试启动入口打断点#xff0c;一步步进入方法定位项目停止代码我的项目执行到SpringApplication.class 的152行代码会停止项…2.2.11.RELEASE 2.7.4项目更新spring-boot-starter-parent 主依赖导致项目跑不起了日志也没有输出有用信息自己查看源码调试启动入口打断点一步步进入方法定位项目停止代码我的项目执行到SpringApplication.class 的152行代码会停止项目1、org.springframework.boot.context.config.InactiveConfigDataAccessException: Inactive property source Config resource class path resource [application.properties] via location optional:classpath:/ imported from location class path resource [application.properties] cannot contain property spring.profiles.active [origin: class path resource [application.properties] - 1:24]application.properties 弃用spring.profiles.activedev 转换spring.config.activate.on-profiledev如果没有报错可以不管2、java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase升级jackson 版本 2.10以上ToStringSerializerBase是jackson2.10新增的类3、org.springframework.beans.factory.BeanCreationException: Error creating bean with name winMigrationImpl: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder spring.datasource.driver-class-name in value ${spring.datasource.driver-class-name}报错SpringApplication.class 158行 this.refreshContext(context);Error creating bean with name winMigrationImpl: Injection of autowired dependencies failed原因没有读取到配置文件解决https://huaweicloud.csdn.net/63a56ef7b878a54545946e55.html?spm1001.2101.3001.6661.1utm_mediumdistribute.pc_relevant_t0.none-task-blog-2~default~OPENSEARCH~activity-1-105632264-blog-129064755.pc_relevant_3mothn_strategy_recoverydepth_1-utm_sourcedistribute.pc_relevant_t0.none-task-blog-2~default~OPENSEARCH~activity-1-105632264-blog-129064755.pc_relevant_3mothn_strategy_recoveryutm_relevant_index14、项目循环引用按提示添加 配置 spring.main.allow-circular-referencestrue5、PatternsRequestCondition.getPatterns()报错this.condition is nullhttps://blog.didispace.com/swagger-spring-boot-2-6/Spring Boot整合Swagger问题解决1、添加配置项 spring.mvc.pathmatch.matching-strategyant_path_matcher2、webconfig添加 单独第一步不行就两个都加上import org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties; import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties; import org.springframework.boot.actuate.autoconfigure.web.server.ManagementPortType; import org.springframework.boot.actuate.endpoint.ExposableEndpoint; import org.springframework.boot.actuate.endpoint.web.*; import org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier; import org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointsSupplier; import org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping; import org.springframework.context.annotation.Bean; import org.springframework.core.env.Environment; import org.springframework.util.StringUtils;import java.util.ArrayList; import java.util.Collection; import java.util.List;Bean public WebMvcEndpointHandlerMapping webEndpointServletHandlerMapping(WebEndpointsSupplier webEndpointsSupplier, ServletEndpointsSupplier servletEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier, EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, Environment environment) {ListExposableEndpoint? allEndpoints new ArrayList();CollectionExposableWebEndpoint webEndpoints webEndpointsSupplier.getEndpoints();allEndpoints.addAll(webEndpoints);allEndpoints.addAll(servletEndpointsSupplier.getEndpoints());allEndpoints.addAll(controllerEndpointsSupplier.getEndpoints());String basePath webEndpointProperties.getBasePath();EndpointMapping endpointMapping new EndpointMapping(basePath);boolean shouldRegisterLinksMapping this.shouldRegisterLinksMapping(webEndpointProperties, environment, basePath);return new WebMvcEndpointHandlerMapping(endpointMapping, webEndpoints, endpointMediaTypes, corsProperties.toCorsConfiguration(), new EndpointLinksResolver(allEndpoints, basePath), shouldRegisterLinksMapping, null); }private boolean shouldRegisterLinksMapping(WebEndpointProperties webEndpointProperties, Environment environment, String basePath) {return webEndpointProperties.getDiscovery().isEnabled() (StringUtils.hasText(basePath) || ManagementPortType.get(environment).equals(ManagementPortType.DIFFERENT)); }6、java.lang.NoSuchMethodError: org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties.getServlet()Lorg/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties$Servlet;依赖升级到2.4.1原2.3.1版本没有这个方法!-- 监控健康-- dependencygroupIdde.codecentric/groupIdartifactIdspring-boot-admin-starter-client/artifactIdversion2.4.1/version /dependency6、IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value * since that cannot be set on the Access-Control-Allow-Origin response header. To allow credentials to a set of origins, list them explicitly or consider using allowedOriginPatterns instead.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value * since that cannot be set on the Access-Control-Allow-Origin response header. To allow credentials to a set of origins, list them explicitly or consider using allowedOriginPatterns instead.解决项目配置 MipsConf.classBean public WebMvcConfigurer corsConfigurer() { return new WebMvcConfigurer() { Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping(/**) //.allowedOrigins(*) .allowedOriginPatterns(*) .allowCredentials(true).allowedMethods(GET, POST, DELETE, PUT,PATCH).maxAge(3600);}}; }allowedOrigins(*) 替换成 allowedOriginPatterns(*)7、fastjson 升级 1.2.83以前版本有漏洞1.2.83 修复
http://www.hkea.cn/news/14564436/

相关文章:

  • 哪些网站有设计缺点做网站的抬头标语怎么
  • wap网站用什么服务器深汕特别合作区天气预报
  • 网站推广优化c重庆自建房外观设计网站推荐
  • 商洛市住房城乡建设厅网站溧阳手机网站设计
  • icp备案网站信息一个网站做多少个关键词比较好
  • 做毕业网站的流程免费空间建网站
  • 安溪建设局网站多平台网店系统
  • 宁波网站建设网站佛山网页模板建站
  • 淄博网站制作品牌定制办公室装修注意事项及细节
  • 网站编辑楼盘详情页怎么做自己做网站送外卖
  • 一般做平面网站多少钱万峰科技.jsp网站开发四酷全书 m
  • 网站开发竞争对手分析如何做网络运营
  • 网站建设流程教案表白网站制作模板
  • 网页游戏网站7wordpress的导航源码
  • 网站基本维护wordpress如何注册
  • 如何做体育彩票网站网络营销策划目标
  • 浙江建设信息港成绩查询栏业务型网站做seo
  • 网站建设的文案苏州归巢网络科技有限公司
  • 个人门户网站备案全国十大教育机构
  • 做导购网站要多少钱电商后台管理网站模板
  • 写出网站建设步骤wordpress爆破软件
  • 深圳辰硕网站优化北京工程造价信息网
  • 设计网站推广方案wordpress入门教程视频
  • 外网专门做钙片的网站给孩子做衣服的网站
  • 电脑游戏网站平台大全网站建设公司 经营范围
  • 做购物商城网站设计ai设计logo免费网站
  • 有做兼职的网站吗wordpress返回上一页插件
  • 怎么做一个电商网站吗网址站
  • 宣传旅游网站建设的观点是什么门户网站优点
  • 自己做的网站怎么让别人能访问曹县商城网站建设