会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wsLin
博客园
首页
新随笔
联系
订阅
管理
2024年5月15日
SpringBoot SpringCloud Spring Cloud Alibaba 版本对应关系
摘要: 最近公司的项目扫描出一些安全漏洞,于是让我给项目中的依赖升下级。有部分涉及到SpringBoot和SpringCloud,因此要考虑到兼容性,特此记录下查询各版本之间对应关系的方法。靠谱的方法还是要从官网得到,参考文章:工具篇--SpringBoot与SpringCloud 的版本对应关系&Spri
阅读全文
posted @ 2024-05-15 13:21 wshuanglin
阅读(1493)
评论(0)
推荐(1)
2023年7月17日
Spring整合Mybatis
摘要: ### 一. 引入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
阅读(24)
评论(0)
推荐(0)
2023年7月11日
mybatis中数据库字段和实体类的属性映射问题
摘要: 由于数据库中表的列名一般是按照多个单词之间用下划线隔开,而java一般是驼峰命名法,所以这两者之间存在映射不到的问题,解决方案如下: 1.给字段添加别名,如下: <select id="getManagerInfo" resultType="string" > select last_login_t
阅读全文
posted @ 2023-07-11 19:21 wshuanglin
阅读(201)
评论(0)
推荐(0)
Maven项目中使用Mybatis框架
摘要: 一 .准备一个空的Maven项目。 二. 配置pom文件,引入相关依赖。 <!--版本建议换成提示的更安全的版本--> <!-- mybatis插件 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifa
阅读全文
posted @ 2023-07-11 13:55 wshuanglin
阅读(100)
评论(0)
推荐(0)
2022年8月31日
Spring框架1——IOC容器
摘要: 一 初识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
阅读(48)
评论(0)
推荐(0)
2022年6月26日
springMVC.xml文件配置
摘要: <!-- 配置包扫描--> <context:component-scan base-package="com.wsl.mvc.controller"/><!-- 配置Thymeleaf视图解析器 --> <bean id="viewResolver1" class="org.thymeleaf.s
阅读全文
posted @ 2022-06-26 11:24 wshuanglin
阅读(70)
评论(0)
推荐(0)
SpingMVC中的web.xml文件常用配置
摘要: 1.Servlet相关配置。 <servlet> <servlet-name>DispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-clas
阅读全文
posted @ 2022-06-26 11:18 wshuanglin
阅读(68)
评论(0)
推荐(0)
maven依赖整理2(SpringMVC篇)
摘要: 1.Spring相关的依赖。 <!--https://mvnrepository.com/artifact/org.springframework/spring-webmvc --> <dependency> <groupId>org.springframework</groupId> <artif
阅读全文
posted @ 2022-06-26 11:03 wshuanglin
阅读(274)
评论(0)
推荐(0)
2022年3月27日
Java web 中文件上传时部署失败,后台报错:Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException ;org.apache.tomcat.util.modeler.BaseModelMBean.invoke 调用方法[manageApp]时发生异常...
摘要: 昨天在学习文件上传时碰到了一个恶心我好久的问题,还好今天早上成功解决。最终我是从这篇博客找到了答案,链接附上:解决java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory - 牧の风 - 博客园 (cn
阅读全文
posted @ 2022-03-27 10:35 wshuanglin
阅读(552)
评论(0)
推荐(0)
2022年3月26日
maven依赖整理1(java web篇)
摘要: 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
阅读(139)
评论(0)
推荐(0)
下一页
公告