07 2021 档案

摘要:1.git clone 项目地址http 2.git add * 3.git commit -m 自己取名字 4.git pull origin branchname --allow-unrelated-histories 5.git push -u origin master 阅读全文
posted @ 2021-07-13 20:49 YuyuFishSmile 阅读(34) 评论(0) 推荐(0)
摘要:通过application类中的main方法里面的run方法 @SpringBootApplication @ServletComponentScan(basePackages = "com.sp") //可以自动将写的servlet扫描进去 配置扫描的包 @MapperScan("com.sp.m 阅读全文
posted @ 2021-07-02 23:30 YuyuFishSmile 阅读(207) 评论(0) 推荐(0)
摘要:编写引导类注意要标明注解 @SpringBootApplication SpringApplication.run(BootWeb01Application.class, args); 再编写main方法的时候使用run方法 起步依赖spring-boot-starter-parent 父工程,主要 阅读全文
posted @ 2021-07-02 21:06 YuyuFishSmile 阅读(75) 评论(0) 推荐(0)
摘要:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> spring-boot-autoconfigu 阅读全文
posted @ 2021-07-02 11:11 YuyuFishSmile 阅读(68) 评论(0) 推荐(0)
摘要:引入Mybatis-plus <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.3.1</version> </dependency 阅读全文
posted @ 2021-07-01 23:51 YuyuFishSmile 阅读(98) 评论(0) 推荐(0)
摘要:1.配置模式 全局配置文件 SqlsessionFactory:已经自动配置完成 SqlSession: 已经自动配置SqlSessionTemplate,组合了SqlSession,真正对数据库的CRUD用的就是sqlsession Mapper: 只要我们写的操作Mybatis的接口标注了@Ma 阅读全文
posted @ 2021-07-01 21:08 YuyuFishSmile 阅读(103) 评论(0) 推荐(0)
摘要:自定义 1.引入依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.17</version> </dependency> 2.写一个自己的配置类 分析: 在springb 阅读全文
posted @ 2021-07-01 12:34 YuyuFishSmile 阅读(272) 评论(0) 推荐(0)