摘要: 1.首先保证yaml配置url路径没错 2.确保yaml缩进格式没错 3.确保导入了data-jdbc包和java-connector包 4.我的问题:在pom文件中去掉资源路径配置 <resources> <resource> <directory>src/main/java</directory 阅读全文
posted @ 2022-11-01 11:15 大帅爱编程 阅读(137) 评论(0) 推荐(0)
摘要: MD5加密 加密密码防止被盗用 创建用户表 create table user( id int(4) not null, name varchar(20) not null, pwd varchar(10) not null ) 插入数据 insert into user values(1,'gcs 阅读全文
posted @ 2021-10-20 10:55 大帅爱编程 阅读(34) 评论(0) 推荐(0)
摘要: # 数据库引擎 - INNODB 默认使用 - MYISAM 早些年使用 引擎 MYISAM INNODB : : : : : : 事务处理 不支持 支持 数据行锁定 不支持 支持 外键约束 不支持 支持 全文索引 支持 不支持 表空间大小 较小 约2倍MYISAM 常规使用操作 - MYISAM 阅读全文
posted @ 2021-10-17 20:27 大帅爱编程 阅读(37) 评论(0) 推荐(0)
摘要: 数据库字段 字段类型 数值 tinyint 十分小的数据 1个字节 smallint 较小的数据 2个字节 mediumint 中等大小数据 3个字节 int 标准整数 4个字节 bigint 较大的数据 8个字节 float 浮点数 4个字节 double 浮点数 8个字节 decimal 字符串 阅读全文
posted @ 2021-10-17 16:44 大帅爱编程 阅读(126) 评论(0) 推荐(0)
摘要: NoSQL编程 Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 字符串(strings), 散列(hashes), 列表(lists), 集合(sets), 有序集合(sorted sets) 与范围查询, bit 阅读全文
posted @ 2021-10-15 17:33 大帅爱编程 阅读(85) 评论(0) 推荐(0)
摘要: | # BaseMapper接口访问数据库 | | | | ## Mapper接口继承BaseMapper | | | | java | | /** | | * 继承BaseMapper就有操作数据库的方法,不需要写Mapper.xml | | */ | | @Mapper | | public i 阅读全文
posted @ 2021-10-15 14:28 大帅爱编程 阅读(593) 评论(0) 推荐(0)
摘要: Spring Boot网页显示数据表 配置数据库 ①导入依赖 mybatis-plus。自动配置数据源 <dependency> <groupId>com.baomidou</groupId> <artifactId> mybatis-plus-boot-starter </artifactId> 阅读全文
posted @ 2021-10-14 19:55 大帅爱编程 阅读(778) 评论(0) 推荐(0)
摘要: Spring Boot 数据访问 application.yami配置 引入依赖包druid-spring-boot-starter <dependency> <groupId>com.alibaba</groupId> <artifactId> druid-spring-boot-starter 阅读全文
posted @ 2021-10-14 18:23 大帅爱编程 阅读(2161) 评论(0) 推荐(0)
摘要: 多态 方法多态 一个方法可以根据发送对象的不同而采用多种不同的行为方式 class Person{ public void run(){ Sytsem.out.println("person"); } } class Student extends Person{ public void run() 阅读全文
posted @ 2021-10-09 18:42 大帅爱编程 阅读(42) 评论(0) 推荐(0)
摘要: super 调用父类属性 class Person{ String name="gcs"; } class Student extends Person{ String name="lh"; public void test(String name){ System.out.println(name 阅读全文
posted @ 2021-10-09 10:54 大帅爱编程 阅读(49) 评论(0) 推荐(0)