摘要: 最近公司的项目扫描出一些安全漏洞,于是让我给项目中的依赖升下级。有部分涉及到SpringBoot和SpringCloud,因此要考虑到兼容性,特此记录下查询各版本之间对应关系的方法。靠谱的方法还是要从官网得到,参考文章:工具篇--SpringBoot与SpringCloud 的版本对应关系&Spri 阅读全文
posted @ 2024-05-15 13:21 wshuanglin 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ### 一. 引入Spring等相关依赖 ```xml org.mybatis mybatis 3.5.6 mysql mysql-connector-java 8.0.33 junit junit 4.13.1 test org.projectlombok lombok 1.18.18 com.g 阅读全文
posted @ 2023-07-17 20:04 wshuanglin 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 由于数据库中表的列名一般是按照多个单词之间用下划线隔开,而java一般是驼峰命名法,所以这两者之间存在映射不到的问题,解决方案如下: 1.给字段添加别名,如下: <select id="getManagerInfo" resultType="string" > select last_login_t 阅读全文
posted @ 2023-07-11 19:21 wshuanglin 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 一 .准备一个空的Maven项目。 二. 配置pom文件,引入相关依赖。 <!--版本建议换成提示的更安全的版本--> <!-- mybatis插件 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifa 阅读全文
posted @ 2023-07-11 13:55 wshuanglin 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 一 初识IOC。 1.创建一个空项目,导入相关的jar包。在官网下载Spring压缩包,以下与Spring相关的jar包在其libs目录下找到。 <!-- commons-logging-1.2.jar 日志 spring-beans-5.3.9.jar spring-context-5.3.9.j 阅读全文
posted @ 2022-08-31 21:33 wshuanglin 阅读(35) 评论(0) 推荐(0) 编辑
摘要: <!-- 配置包扫描--> <context:component-scan base-package="com.wsl.mvc.controller"/><!-- 配置Thymeleaf视图解析器 --> <bean id="viewResolver1" class="org.thymeleaf.s 阅读全文
posted @ 2022-06-26 11:24 wshuanglin 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 1.Servlet相关配置。 <servlet> <servlet-name>DispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-clas 阅读全文
posted @ 2022-06-26 11:18 wshuanglin 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1.Spring相关的依赖。 <!--https://mvnrepository.com/artifact/org.springframework/spring-webmvc --> <dependency> <groupId>org.springframework</groupId> <artif 阅读全文
posted @ 2022-06-26 11:03 wshuanglin 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 昨天在学习文件上传时碰到了一个恶心我好久的问题,还好今天早上成功解决。最终我是从这篇博客找到了答案,链接附上:解决java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory - 牧の风 - 博客园 (cn 阅读全文
posted @ 2022-03-27 10:35 wshuanglin 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1.单元测试依赖 <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> 2.首先是servlet < 阅读全文
posted @ 2022-03-26 16:29 wshuanglin 阅读(92) 评论(0) 推荐(0) 编辑