上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 43 下一页
摘要: 1.如果idea插件中搜索不到,直接到插件市场搜索gitee https://plugins.jetbrains.com/ 2.安装到本地后,有个zip包,不解压,进入idea–> plugins,选中刚刚下的zip包。(解压的话就选中里面的jar包) 阅读全文
posted @ 2022-08-01 17:39 lwx_R 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(23) 评论(0) 推荐(0) 编辑
摘要: <!-- 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 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1.EL表达式不生效 ${data}直接在界面显示,没有变成data的值 解决方法:在jsp页面头添加如下内容,来关闭忽略el表达式 <%@ page isELIgnored="false" %> 阅读全文
posted @ 2022-07-15 09:38 lwx_R 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.代理三要素 1.共同行为-定义接口 2.真实角色-实现接口 3.代理角色-实现接口 增强用户行为 2.静态代理特点 1.目标角色固定 2.在应用程序之前就知道目标角色 3.代理对象增强目标对象行为 4.有可能有多个代理,产生类爆炸 package com.xxx.proxy; /** * 静态代 阅读全文
posted @ 2022-07-14 22:59 lwx_R 阅读(50) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 43 下一页