flower

导航

2023年4月7日 #

安装jar包到本地仓库命令

摘要: 打开cmd进入需要安装的jar包所在的目录,输入以下命令(前提是需要配置maven的环境变量,不然系统无法识别mvn命令) mvn install:install-file -Dfile=xx -DgroupId=xx -DartifactId=xx -Dversion-xx -Dpackaging 阅读全文

posted @ 2023-04-07 13:55 花已成海 阅读(67) 评论(0) 推荐(0) 编辑

开启禁止匿名用户访问私服后,从私服下载jar包的两种方式

摘要: ①配置<server>和<profile>、<activeProfiles> <server> <id>nexus</id> <username>访问的账号</username> <password>访问的密码</password> </server> <!--配置私服下载jar包的模板 开始--> 阅读全文

posted @ 2023-04-07 13:04 花已成海 阅读(100) 评论(0) 推荐(0) 编辑

2023年3月29日 #

xml中获取jdbc.properties文件

摘要: ①Spring中可以引入context命名空间,然后使用<context:property-placeholder location="classpath:jdbc.properties"/> ②MyBatis中可以使用<properties resource="jdbc.properties"/> 阅读全文

posted @ 2023-03-29 11:29 花已成海 阅读(14) 评论(0) 推荐(0) 编辑

2023年3月27日 #

SpringMVC与jsp页面的联动

摘要: 当jsp页面中传递的参数和pojo中某个实体类定义的参数名称一致时,SpringMVC会自动封装成该实体类的一个对象 阅读全文

posted @ 2023-03-27 14:25 花已成海 阅读(35) 评论(0) 推荐(0) 编辑

2023年3月23日 #

SpringMVC拦截器

摘要: 当存在多个Interceptor时,拦截顺序是根据spring-mvc.xml中的拦截器配置顺序来的: 拦截器中定义的三个方法: preHandle(req,res,obj):在目标方法执行前 执行 postHandle(req,res,obj,modAndView):在目标方法执行后、视图对象返回 阅读全文

posted @ 2023-03-23 18:20 花已成海 阅读(23) 评论(0) 推荐(0) 编辑

2023年3月17日 #

idea使用tomcat部署项目失败总结

摘要: 情况①:无法访问localhost:8080页面 解决办法:https://www.cnblogs.com/lwt280887072/p/16307489.html 情况②:artifact 项目:war exploded:Error during artifact deployment.See s 阅读全文

posted @ 2023-03-17 14:10 花已成海 阅读(331) 评论(0) 推荐(0) 编辑