自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 springcloud nacos服务发现分组group属性失效

nacos yaml配置spring.cloud.nacos.discovery.group属性不生效。解决:版本依赖问题导致,以下为修改后的依赖版本。

2024-04-18 15:18:23 256

原创 SpringBoot 静态资源被拦截解决方案

使用WebMvcConfigurationSupportimport org.springframework.context.annotation.Configuration;import org.springframework.util.ResourceUtils;import org.springframework.web.servlet.config.annotation.*;/** * @Description 解决静态资源被拦截的问题 */@Configurationpubl.

2021-11-16 23:45:03 902

原创 springboot+mybatis 找不到实体类:No qualifying bean of type ‘com.wj.bfsh.mapper.SysUserMapper‘ available

报错如下2021-02-18 09:45:58,826 - Starting BfshApplication on DESKTOP-AAPVN38 with PID 10552 (F:\IdeaIu\work_place\bfsh\target\classes started by AoDexiusi in F:\IdeaIu\work_place\bfsh)2021-02-18 09:45:58,828 - Running with Spring Boot v2.3.7.RELEASE, Spring

2021-02-18 09:56:23 877

原创 springboot + shiro + layui整合项目时 报错:Uncaught ReferenceError: layui is not defined

springboot + shiro + layui整合项目时,一直报错:Uncaught ReferenceError: layui is not defined解决:1.首先确定layui.js是否正确引用。2.排除shiro是否拦截了layui.js,如下正确引用:静态资源项目结构shiroConfig类放开对静态资源的拦截**前端引用:layui.js一定放在最前面,我...

2020-05-01 12:23:21 820

原创 Error creating bean with name 'cpyUserService': Injection of autowired dependencies failed;

整合ssm报错org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cpyUserService': Injection of autowired dependencies failed; nested exception is org.springframework.bea...

2020-03-29 12:52:43 244

原创 封装JQuery插件,报错:$(...).plugIn is not a function

本人初次接触封装jquery插件,但一直报**$(…).plugIn is not a function**。百度一直没解决,后来自行找到原因。iptMenu.html<html> <head> <meta charset="UTF-8"> <title>Title</title> ...

2019-12-15 17:05:12 1274

原创 ssm项目controller进行页面跳转时,页面没反应,但f12已经请求成功了

前台请求已经成功了后台打印也没问题我使用return new ModelAndView(“redirect:/index”);return “redirect:/index”;都是这样,页面没反应,f12和后台已经成功了。最后发现是我的登录按钮的a标签请求内容为void(0)造成的改成href="#“或者href=”"后,页面都可以正常跳转了。...

2019-08-23 00:02:22 3141

转载 SSM框架整合 实现日志记录(AOP+log4j2)

详细链接

2019-08-22 16:16:18 985

转载 日志报错“Couldn't find a destroy method named 'close' on bean with name 'dataSourceFund'”

<bean id="dataSourceFund" class="org.springframework.jdbc.datasource.DriverManagerDataSource" destroy-method="close"> <property name="driverClassName" value="${jdbc.driver}" /...

2019-08-22 11:55:16 2147 1

原创 ssm框架整合 接口自动注入失败“Injection of autowired dependencie;No qualifying bean of type found for dependency"

经过百度发现是我没有配置监听。在web.xml里添加<!-- spring监听器 --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>&lt...

2019-08-22 11:16:14 190

原创 Servlet.service() for servlet [SpringMVC] in context with path [/ssm] threw exception [Request proce

严重: Servlet.service() for servlet [SpringMVC] in context with path [/ssm] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause at org.spring...

2019-08-21 01:49:01 2191

原创 异常:java.lang.IllegalArgumentException: Result Maps collection already contains value

mapper.xml都是自动生成的,但因为我执行了mybatis的逆向工程时没有删除全部的mapper.xml,导致另外一个mapper.xml被追加了id为BaseResultMap 的标签。导致这个xml有重复的id。解决:打开相关mapper.xml 搜索BaseResultMap ,然后删除重复类容即可...

2019-08-20 16:35:42 236

转载 Invalid bound statement (not found): com.xxx.dao.xxxDao.selectByxx

1 问题实质: dao层(又叫mapper接口)跟mapper.xml文件没有映射2 问题原因: 出现这种映射问题的原因分为低级原因和更低级原因两种更低级原因:(1)dao层的方法和mapper.xml中的方法不一样;(2)mapper中的namespace resultParameter 和对应的dao层entity层不一样(3)拼写错误 如漏写 少写 多写…上述这些原因都会导致两者...

2019-08-16 14:44:32 695

原创 org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标

参考链接问题解析:遇到这样的bug是因为xml文件第一句出错。解决方法:1、确保每个xml的第一句<?xml version="1.0" encoding="UTF-8"?>之前没有空格。2、复制网上的xml文件的时候,建议这一句<?xml version="1.0" encoding="UTF-8"?>不要复制,保留生成文件的时候生成的这句代码<?xml v...

2019-08-15 15:29:47 638

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除