- 博客(15)
- 收藏
- 关注
原创 宝塔面板提示报错当前未安装docker或docker-compose
通过服务器终端安装docker及docker-compose,服务正常启动了,但是宝塔面板页面提示:“当前未安装docker或docker-compose”关联软连接,其中 /usr/bin/docker-compose 为宝塔识别路径。重启宝塔面板,需要等几分钟才能重新访问宝塔面板。查询docker-compose安装路径。
2024-08-27 11:51:08
368
1
原创 springcloud nacos服务发现分组group属性失效
nacos yaml配置spring.cloud.nacos.discovery.group属性不生效。解决:版本依赖问题导致,以下为修改后的依赖版本。
2024-04-18 15:18:23
625
1
原创 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
951
原创 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
944
原创 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
897
原创 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
303
原创 封装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
1315
原创 ssm项目controller进行页面跳转时,页面没反应,但f12已经请求成功了
前台请求已经成功了后台打印也没问题我使用return new ModelAndView(“redirect:/index”);return “redirect:/index”;都是这样,页面没反应,f12和后台已经成功了。最后发现是我的登录按钮的a标签请求内容为void(0)造成的改成href="#“或者href=”"后,页面都可以正常跳转了。...
2019-08-23 00:02:22
3235
转载 日志报错“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
2330
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><...
2019-08-22 11:16:14
227
原创 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
2257
原创 异常: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
284
转载 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
754
原创 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
727
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人