![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java错误解决
墨方士
这个作者很懒,什么都没留下…
展开
-
配置的xml文件无法扫描到
idea springboot mybatis 配置的xml文件无法扫描到在做一个系统是,创建多个**mapper.xml文件 其中一个在命名时错误,删除后重新创建时idea没有自动更改图标,文件名灰色没有,文件中也没有提示, 在启动时也报错无法加载这个文件解决:将sources 设置器Sources Root就ok了...原创 2019-01-04 19:59:10 · 962 阅读 · 0 评论 -
关于springboot请求页面时报错 找不到页面
关于springboot请求页面时报错 找不到页面环境 : spring boot +ssm页面通过请求访问接口接口返回modeAndView返回页面错误如下org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: “class path r...原创 2019-08-08 17:08:34 · 1902 阅读 · 0 评论 -
springboot启动报Error processing condition on org.springframework.boot.autoconfigure.web.servlet.WebMvc
springboot启动报Error processing condition on org.springframework.boot.autoconfigure.web.servlet.WebMvc环境: springboot +ssm jdk1.8 idea 2017 ,换了台电脑重新拉项目时出错java.lang.IllegalStateException: Error proce...原创 2019-08-08 16:09:04 · 24819 阅读 · 0 评论 -
sql 语句 用int类型等于字符类型会默认匹配第一个数字
sql 语句 用int类型等于字符类型会默认匹配第一个数字原创 2019-07-30 14:06:40 · 605 阅读 · 0 评论 -
mysql8小时未连接自动断开 Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communicat报错:Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet succes...原创 2019-07-01 08:14:58 · 1449 阅读 · 0 评论 -
关于websocket的http无法升级到ws请求的错误The HTTP response from the server [404] did not permit the HTTP upgrad
错误:javax.websocket.DeploymentException: The HTTP response from the server [404] did not permit the HTTP upgrade to WebSocket环境: springboot + ssm+webSocket 项目有两个服务器一个在公网上,一个在私网上, 私网可以访问公网,但是公网不能访问私网...原创 2019-07-03 10:19:10 · 7061 阅读 · 2 评论 -
mybatis 查询出的数据其中有几个列为null 封装不上 sql语句查询存在的列显示不存在
环境:java web 项目 sql工具 navicat问题:同事的代码查询出的数据总是有两个列的数据为null, 在排查封装的returnMap和实体类之后发现无误 ,后再Navicat 工具使用sql查询 发现根据列查询数据时 其中的几个列名为Unknown(自己做的演示表)数据看着表查询(看似语句正确,其实他报错了 找不到name列)然后Navicat 查看表的设计查询 ...原创 2019-06-14 11:33:03 · 1506 阅读 · 0 评论 -
mybatis的like查询 %百分号不能用单引号括
关于mybaits的like查询 #{..}不能使用' 单引号来括%百分号 date like #{…}"%"date like #{…}’%’ 错误的 查询语句会是 date like ‘?’’%’原创 2019-06-12 16:19:56 · 1303 阅读 · 0 评论 -
springBoot jpa No property or found for type String! Traversed path: Recruit.state.
Failed to create query for method public abstract java.util.List com.tensquare.recruit.dao.RecruitDao.findTop4ByStateOrOrderByCreatetimeDesc(java.lang.String)! No property or found for type String! Tr...原创 2019-04-06 19:14:24 · 3013 阅读 · 1 评论 -
启动springboot jpa 报错 required a bean named 'entityManagerFactory' that could not be found.
Field labelDao in com.tensquare.base.Service.LabelSerive required a bean named ‘entityManagerFactory’ that could not be found.Action:Consider defining a bean named ‘entityManagerFactory’ in your con...原创 2019-04-06 15:39:19 · 5914 阅读 · 4 评论 -
Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance.
启动Springboot 时出现 Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org…昨天在mybatis.xml文件里写了一半的sql语句所以报错…...原创 2019-01-07 16:29:57 · 2977 阅读 · 0 评论 -
关于 mybatis ..... like "%"name 在;inux查询报错
linux mysql 不兼容 需要使用 ‘%${name}’原创 2019-08-13 09:45:32 · 223 阅读 · 0 评论