上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 46 下一页
摘要: #函数 def fun(a,b='b'): print("fun"+a+b) return a fun(b='b',a='a')#关键字实参 #传递任意数量实参 实参封装到元组里 def fun1(*arg): print(arg) for a in arg: print(a) fun1("lol" 阅读全文
posted @ 2022-08-29 16:11 lwx_R 阅读(42) 评论(0) 推荐(0)
摘要: print("Hello World") # 变量 a=" this is string " print(a) # 字符串方法 print(a.title())#首字母大写 print(a.strip())#去除开头和结尾空白 lstrip()开头 rstrip()结尾 print(a.upper( 阅读全文
posted @ 2022-08-22 18:10 lwx_R 阅读(44) 评论(0) 推荐(0)
摘要: ON DELETE restrict(约束):当在父表(即外键的来源表)中删除对应记录时,首先检查该记录是否有对应外键,如果有则不允许删除。 no action:意思同restrict.即如果存在从数据,不允许删除主数据。 cascade(级联):当在父表(即外键的来源表)中删除对应记录时,首先检查 阅读全文
posted @ 2022-08-01 18:05 lwx_R 阅读(1545) 评论(0) 推荐(0)
摘要: 1.如果idea插件中搜索不到,直接到插件市场搜索gitee https://plugins.jetbrains.com/ 2.安装到本地后,有个zip包,不解压,进入idea–> plugins,选中刚刚下的zip包。(解压的话就选中里面的jar包) 阅读全文
posted @ 2022-08-01 17:39 lwx_R 阅读(160) 评论(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 阅读(1116) 评论(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 阅读(50) 评论(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 阅读(138) 评论(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 阅读(393) 评论(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 阅读(234) 评论(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 阅读(38) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 46 下一页