摘要: 类型: integer(int)、double、long:数値型 string:文字型 boolean:布尔型 写法: int i = int.Parse("1234"); long l = long.Parse("1234"); double d = double.Parse("124.3"); 阅读全文
posted @ 2024-03-22 16:24 OYそ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 焦点状态 ActiveControl 和 Focus ActiveControl = textBox1; 默认光标焦点在文本框textBox1处 textBox1.Focus(); 焦点转移到textBox1 2. 日期选择显示在文本框 创建伪 DateTimePicker: TextBox文 阅读全文
posted @ 2024-03-22 15:25 OYそ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 一、 2个画面互相跳转 form1: private void label1_Click(object sender, EventArgs e) { //次画面を非表示 隐藏此画面显示2画面 this.Visible = false; Form2 f2 = new Form2(); f2.Show( 阅读全文
posted @ 2024-03-22 14:47 OYそ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: > commit 首次要填Gitee的账号密码 阅读全文
posted @ 2023-10-25 14:32 OYそ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 实体类 @Data @AllArgsConstructor @NoArgsConstructor @TableName("t_user") public class RUser { @TableId(value="usr_id",type = IdType.AUTO) private Integer 阅读全文
posted @ 2023-10-18 17:28 OYそ 阅读(8) 评论(0) 推荐(0) 编辑
摘要: shiro是apache的一个开源框架,是一个权限管理的框架,实现认证、授权、加密、会话管理。 shiro优势举例 易用:相当于其他安全框架,shiro比较简单易用。 使用非常广泛,资料好找。 灵活:可以工作在很多环境 。 web支持:对web的支持好, 如thymeleaf标签支持。 支持:应用广 阅读全文
posted @ 2023-10-17 16:55 OYそ 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 实体类 @Data @AllArgsConstructor @NoArgsConstructor @TableName("t_user") public class RUser { @TableId(value="id",type = IdType.AUTO) private Integer usr 阅读全文
posted @ 2023-10-17 16:49 OYそ 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 一. 项目创建及配置 1.项目创建 点击finish完成创建 pom.xml 加上以下依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version 阅读全文
posted @ 2023-10-13 11:09 OYそ 阅读(19) 评论(0) 推荐(0) 编辑
摘要: pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2023-09-28 00:20 OYそ 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Aop:面向切面,在不修改代码的前提下对方法进行增强 pom.xml <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version 阅读全文
posted @ 2023-09-25 11:04 OYそ 阅读(9) 评论(0) 推荐(0) 编辑
摘要: pom.xml <dependencies> <!--spring与Mybatis整合--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5. 阅读全文
posted @ 2023-09-25 02:20 OYそ 阅读(7) 评论(0) 推荐(0) 编辑
摘要: dao层 public interface UserDao { void insertUser(); } 实现类 /*@Component(value = "userDao") 配置到实例里去 或者直接用下面的Repository*/ @Repository("userDao") public cl 阅读全文
posted @ 2023-09-22 11:50 OYそ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: UserMapper public interface UserMapper { /*注解实现增删改查*/ @Select("select * from tb_user") List<User> selectAll2(); @Insert("insert into tb_user values(nu 阅读全文
posted @ 2023-09-20 11:22 OYそ 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 一对一 一个员工对应一个部门 实体类 emp package com.entity; import java.io.Serializable; import java.math.BigDecimal; public class EmpVo implements Serializable { priv 阅读全文
posted @ 2023-09-20 11:19 OYそ 阅读(4) 评论(0) 推荐(0) 编辑
摘要: BrandMapper.java public interface BrandMapper { List<Brand> selectAll(); //查询所有 Brand selectBrandById(int id);//根据id查询 void insertBrand(Brand brand);/ 阅读全文
posted @ 2023-09-20 10:45 OYそ 阅读(2) 评论(0) 推荐(0) 编辑