BUG合集
sky~
实习ing
展开
-
浏览器访问本地资源addResourceHandlers
浏览器访问本地资源addResourceHandlers。原创 2023-01-05 10:57:45 · 479 阅读 · 0 评论 -
gateway跨域问题解决方法
在解决之前在gateway中用了全局配置类跨域package com.sky.wlmall.gateway.config;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.cors.CorsConfiguration;import org.springframewo原创 2022-03-04 12:01:05 · 3852 阅读 · 0 评论 -
SpringCloud Alibaba Nacos OpenFeign 依赖冲突问题
首先 新版的 Spring Cloud Alibaba 中 , 底层没有了 loadbalancer 依赖,所以在 使用OpenFeign时会导致Bean注入出问题,导入以下依赖即可 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-loadbalancer</art..原创 2022-02-22 21:21:23 · 1711 阅读 · 0 评论 -
yum 报错
使用yum install -y yum-utils 报了如下错误错误1:Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-epel.repo; Configuration: OptionBinding with id “failovermethod” does not existRepository epel is listed more than once in the configurat原创 2022-02-19 21:45:38 · 1310 阅读 · 0 评论 -
使用Maven工具时出现Process terminated
如果有遇到Process terminated的错误,可以点开错误信息,根据提示一步步查找我的这个错误应该是在项目在别的电脑上来回转移出的问题。可以直接根据提示去你的pom.xml文件里查看。检查发现我的pom.xml文件多了一个依赖去掉后就可以正常使用。...原创 2021-11-14 09:16:09 · 681 阅读 · 0 评论 -
thymeleaf 嵌套使用以及数值运算(避雷)
如上面链接所示,如果想要在th:href中嵌套一个thymeleaf取值可以1.<a th:href="@{'链接'+ ${取值} + '链接'}">将别的部分用 单引号引起来即可2.数值相加的时候 一定要写到取的数值的花括号里面 不然的话就相当于两个字符串相加<a th:href="@{'链接'+ ${取值 + 数值}}">下面这个是相当于字符串拼接 <a th:href="@{'链接'+ ${取值 + 数值}+数值}">...原创 2021-11-13 16:49:33 · 2201 阅读 · 0 评论 -
org.thymeleaf.exceptions.TemplateInputException:
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: “class path resource [templates/admin/types.html]” - line 56, col 21)aCaused by: org.attoparser.ParseException: (Line = 56, Column = 21) Incomplete st原创 2021-11-13 11:56:54 · 560 阅读 · 0 评论 -
Spring注入使用properties配置文件
Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user ‘Sky~’@‘localhost’ (using password: YES)原properties文件和Bean的注入:原创 2021-09-14 18:02:26 · 247 阅读 · 0 评论 -
xml文件加上注释后报错解决方法
花了好久找到的感觉最有用的方法!!!将第一行的<?xml version="1.0" encoding="UTF-8" ?>改为<?xml version="1.0" encoding="UTF8" ?>也就是把 - 去掉!!!过程中在网上搜了一大堆的方法如果上面的不行可以试下下面两种:1.在pom.xml文件中添加配置<properties> <project.build.sourceEncoding>UTF-8</proje原创 2021-09-13 23:49:32 · 1494 阅读 · 0 评论 -
TomCat启动失败
(1)13-Sep-2021 22:04:47.281 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal 一个或多个筛选器启动失败。完整的详细信息将在相应的容器日志文件中找到 13-Sep-2021 22:04:47.282 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContex原创 2021-09-13 22:45:04 · 210 阅读 · 0 评论