会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lwx_R
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
29
30
31
32
33
34
35
36
37
···
45
下一页
2022年8月1日
IDEA中连接gitee
摘要: 1.如果idea插件中搜索不到,直接到插件市场搜索gitee https://plugins.jetbrains.com/ 2.安装到本地后,有个zip包,不解压,进入idea–> plugins,选中刚刚下的zip包。(解压的话就选中里面的jar包)
阅读全文
posted @ 2022-08-01 17:39 lwx_R
阅读(157)
评论(0)
推荐(0)
2022年7月29日
mybatis 捕获sql主键重复异常
摘要: try{ dao.inser(entity); } catch (Exception e){ if(e instanceof DuplicateKeyException){ return -2; }else { return -1; } 在service层中 public MessageModel
阅读全文
posted @ 2022-07-29 08:58 lwx_R
阅读(1111)
评论(0)
推荐(0)
Mybatis中javaType和jdbcType对应关系
摘要: JDBC Type Java Type CHAR String VARCHAR String LONGVARCHAR String NUMERIC java.math.BigDecimal DECIMAL java.math.BigDecimal BIT boolean BOOLEAN boolea
阅读全文
posted @ 2022-07-29 08:53 lwx_R
阅读(48)
评论(0)
推荐(0)
2022年7月21日
Mybatis有多个参数时的写法
摘要: 1.第一种写法 Mapper接口函数 public boolean uploadUserUpwd(String upwd,String uname); Mapper.xml <update id="uploadUserUpwd" parameterType="String" > update log
阅读全文
posted @ 2022-07-21 11:20 lwx_R
阅读(132)
评论(0)
推荐(0)
Mybatis插入操作对空值的处理
摘要: Mapper.xml <insert id="AddNewCar" parameterType="com.xxx.entity.Car" useGeneratedKeys="true" keyProperty="cid"> insert into car(brand,model,price,time
阅读全文
posted @ 2022-07-21 11:07 lwx_R
阅读(392)
评论(0)
推荐(0)
2022年7月16日
Git连接gitee远程仓库
摘要: 1.在要上传的本地文件夹右键选择Git Bash 2.输入 git init,会在本地文件生成.git文件,该文件是隐藏的 3.输入 git remote add origin https://gitee.com/wpsunbo/used-car-trading-platform.git origi
阅读全文
posted @ 2022-07-16 17:15 lwx_R
阅读(224)
评论(0)
推荐(0)
2022年7月15日
SpringAOP 动态代理
摘要: 1.实现方式:JDK动态代理和CGLIB动态代理 2.动态代理特点 1.目标对象不固定 2.在应用程序执行时动态创建目标对象 3.代理对象会增强目标对象的行为 3.JDK动态代理 package com.xxx.proxy; import java.lang.reflect.InvocationHa
阅读全文
posted @ 2022-07-15 19:27 lwx_R
阅读(32)
评论(0)
推荐(0)
jstl需要导入的依赖
摘要: <!-- JSTL实现包 --> <dependency> <groupId>org.apache.taglibs</groupId> <artifactId>taglibs-standard-impl</artifactId> <version>1.2.5</version> </dependen
阅读全文
posted @ 2022-07-15 09:39 lwx_R
阅读(272)
评论(0)
推荐(0)
jsp遇到的问题
摘要: 1.EL表达式不生效 ${data}直接在界面显示,没有变成data的值 解决方法:在jsp页面头添加如下内容,来关闭忽略el表达式 <%@ page isELIgnored="false" %>
阅读全文
posted @ 2022-07-15 09:38 lwx_R
阅读(31)
评论(0)
推荐(0)
2022年7月14日
SpringAOP 静态代理
摘要: 1.代理三要素 1.共同行为-定义接口 2.真实角色-实现接口 3.代理角色-实现接口 增强用户行为 2.静态代理特点 1.目标角色固定 2.在应用程序之前就知道目标角色 3.代理对象增强目标对象行为 4.有可能有多个代理,产生类爆炸 package com.xxx.proxy; /** * 静态代
阅读全文
posted @ 2022-07-14 22:59 lwx_R
阅读(70)
评论(0)
推荐(0)
上一页
1
···
29
30
31
32
33
34
35
36
37
···
45
下一页
公告