maven
maven
jay编程
这个作者很懒,什么都没留下…
展开
-
Failed to introspect Class [com.controller.HardWareController] from ClassLoa在ssm中读取串口信息
使用ssm,也这样子建立lib,导入就会有问题。因为我在ssm中使用的是maven,如果也像上面这样,就会出现jar冲突。解决办法,在maven中导入坐标,而不是手动建立lib导入jar。我们是导入的RXTXcomm.jar在lib目录下,但是使用ssm就出现了上述问题,原因是jar冲突。之前使用java程序读取串口信息,没有问题,原创 2022-11-06 16:47:18 · 418 阅读 · 0 评论 -
解决Cannot resolve plugin org.apache.maven.plugins:maven-site-plugin:3.3问题
标题:解决Cannot resolve plugin org.apache.maven.plugins:maven-site-plugin:3.3问题1.2.因为自己可能下载maven时候,更改过默认在c盘下的路径,3.4。5.这样子应该没有问题了,等一下子就好了,要联网原创 2022-01-27 13:24:15 · 4769 阅读 · 2 评论 -
idea测试时,数据库和bean的名字不一致时
标题:idea测试时,数据库和bean的名字不一致时解决办法,使用resultMap原创 2022-01-24 10:33:27 · 541 阅读 · 0 评论 -
The request sent by the client was syntactically incorrect.
标题:The request sent by the client was syntactically incorrect.数据库中pPrice是integer,而bean中为double,导致出现错误,解决方式:将bean中的pPrice的double改成integer原创 2022-01-23 14:47:34 · 536 阅读 · 0 评论 -
XXX/condition.jsp
标题:XXX/condition.jsp需求是/mimissm_my/admin/prod/condition.action,但实际是XXX/condition.jsp解决办法:加入@ResponseBody,即使返回值为void原创 2022-01-23 14:45:56 · 171 阅读 · 0 评论 -
idea中使用tomcat访问本地图片
标题:idea中使用tomcat访问本地图片原创 2022-01-22 12:57:42 · 651 阅读 · 0 评论 -
使用MultipartFile实现文件上传出现null
标题:使用MultipartFile实现文件上传出现nulleg:我的是下图红色部分写错了,【图示为正确的写法】jsp中controller中原创 2022-01-22 11:50:56 · 604 阅读 · 1 评论 -
org.apache.jasper.compiler.TldLocationsCache tldScanJar
标题:org.apache.jasper.compiler.TldLocationsCache tldScanJar注意自己的jsp是否写错了,eg:我的是下面之前下错了,【图示为正确的写法】原创 2022-01-22 11:47:47 · 701 阅读 · 0 评论 -
Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver cl
标题:Loading class `com.mysql.jdbc.Driver’. This is deprecated. The new driver cl参考链接原创 2022-01-21 16:52:39 · 626 阅读 · 0 评论 -
Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
标题:Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}web.xml中加入监听器 <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </liste原创 2022-01-21 16:21:05 · 604 阅读 · 0 评论 -
idea种没有springconfig文件
标题:idea种没有springconfig文件1.idea要是企业版2.在pom.xml中导入相应的坐标原创 2022-01-21 10:47:34 · 474 阅读 · 0 评论 -
Could not open ServletContext resource [/sqlMapConfig-spring.xml]
标题: Could not open ServletContext resource [/sqlMapConfig-spring.xml]原创 2022-01-20 17:27:01 · 176 阅读 · 0 评论 -
idea中dependency导入错误
标题:idea中dependency导入错误可能的解决方案是【此时和别人代码一样,但就是报错,可能是因为之前没有导入过,】【如果直接将dependency的这一部分删除后,再粘贴没有用,可以试一下下图做法】:复制下图红色部分,到网站:maven仓库eg:我的是pagehelper报错,搜索pagehelper,找到后,复制粘贴...原创 2022-01-19 15:10:54 · 488 阅读 · 0 评论 -
Could not find resource jdbc.properties
标题:Could not find resource jdbc.properties参考链接转载 2022-01-18 18:05:36 · 396 阅读 · 0 评论 -
idea中复制一个module
标题:idea中复制一个module1.复制需要的module,粘贴,【将itheima_spring_tx复制为XXX_my】2.点击maven3.点击+4.找到module的pom.xml,点击5.此后module如下图所示6.删除下图红色中的7.重命名为为module名字itheima_spring_tx_my8.进入pom.xml,修改,name,还有artifactId为module名字...原创 2022-01-18 15:26:55 · 2662 阅读 · 0 评论 -
Could not autowire. No beans of ‘DemoService‘ type found
标题:Could not autowire. No beans of ‘DemoService’ type found解决方式,我之前是com.itheima.controller,现在改成com.itheima即可原创 2022-01-17 16:15:53 · 338 阅读 · 0 评论 -
idea中spring_mvc使用注解进行访问
标题:idea中spring_mvc使用注解进行访问1.新建webapp modules,在pom.xml中载入一些列的坐标后【新建web工程】2.3.4.原创 2022-01-15 10:26:04 · 105 阅读 · 0 评论 -
idea新建web项目
标题:idea新建web项目1.创建一个新的empty project1.11.22.点击下图中3.4.一直点next,finish5.webapp下面只需要web.xml【中的内容,只需要下图所示的】.其余的都删了原创 2022-01-14 17:41:16 · 103 阅读 · 0 评论 -
jdbcTemplate中Invalid argument value: java.io.NotSerializableException;
标题:jdbcTemplate中Invalid argument value: java.io.NotSerializableException;可能是参数不匹配,或者弄错了query和update,query可能需要new BeanPropertyRowMapper【封装成bean或者list】,而update不需要原创 2022-01-14 16:04:36 · 865 阅读 · 0 评论 -
Optional long parameter ‘id‘ is present but cannot be translated into a null value due to being ...
标题:Optional long parameter ‘id’ is present but cannot be translated into a null value due to being …参考blog转载 2022-01-12 18:13:10 · 230 阅读 · 0 评论 -
idea中使用maven出现指向“http://localhost:8080/itheima_spring_mvc/js/jquery-3.2.1.min.js”的 <script> 加载失败。
标题:idea中使用maven出现指向“http://localhost:8080/itheima_spring_mvc/js/jquery-3.2.1.min.js”的 只需要在XXX.xml中加入<mvc:resources mapping="/js/**" location="/js/"/>原创 2022-01-11 11:15:58 · 762 阅读 · 0 评论 -
更改maven的仓库的保存路径
标题:更改maven的仓库的保存路径1.安装好maven后,使用cmd【出现如下图所示,则说明maven配置成功了】进入c盘如下目录,可以看到.m2【里面就有maven的仓库路径】2.创建文件夹,eg:E:\javawebMaven\maven_repository【一开始应该里面都是空的,下图为设置成功后的】3.进入你的maven安装路径;eg:我的【E:\javawebMaven\apache-maven-3.5.2\conf】4.保存即可,后续的jar就会保存在设置的文件夹中...原创 2022-01-05 15:35:57 · 489 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/springframework/jdbc或者将dependency中的jar导入到WebContent/WEB-INF/lib中
标题:将dependency中的jar导入到WebContent/WEB-INF/lib中一、解决错误明明maven中dependencies中配置路径中已有此jar,却仍然报错【原因,WebContent\WEB-INF\lib中没有此jar】类型 异常报告消息 Servlet执行抛出一个异常描述 服务器遇到一个意外的情况,阻止它完成请求。例外情况 javax.servlet.ServletException: Servlet执行抛出一个异常 org.apache.tomcat.we原创 2020-08-29 11:44:23 · 981 阅读 · 0 评论 -
Maven中junit.framework.AssertionFailedError: Could not create test ‘test022‘
标题:Maven中junit.framework.AssertionFailedError: Could not create test ‘test022’一、问题二、解决1)2)自己选择合适的JUnit版本>应用>运行【不知道的话,可以都试一下】原创 2020-08-28 10:54:56 · 328 阅读 · 0 评论 -
eclipse中使用maven创建Java项目,Javaweb项目
标题:eclipse中使用maven创建Java项目,Javaweb项目一、使用maven下载maven,配置环境变量,【可以使用maven了】二、部署到eclipse中1)此后出现如下对话框在eclipse中,配置本地仓库的路径【前面使用maven中已经设置了本地仓库的路径,现在只是在eclipse中设置一份而已】三、使用eclipse创建Java工程【到目前为止eclipse中已经配置好了maven】1)做法:更改E:\javawebMaven\apache-maven-3.5.2\原创 2020-08-25 15:12:59 · 931 阅读 · 0 评论 -
配置maven环境变量,‘mvn‘ 不是内部或外部命令,也不是可运行的程序
标题:‘mvn’ 不是内部或外部命令,也不是可运行的程序,‘mvn’ 不是内部或外部命令,也不是可运行的程序(一)首先声明,我的系统变量里面没有JAVA_HOME就好像只是在Path用户变量里面添加了E:\java\bin(二)和普通的配置一样,一,先新建一个MAVEN_HOME系统环境变量,值为E:\javawebMaven\apache-maven-3.5.2【解压的maven的路径】二、将系统环境变量Path中,添加值**%MAVEN_HOME%\bin**,确认即可三、最重要的是原创 2020-08-23 16:48:58 · 677 阅读 · 0 评论