1.@RestController 与 @RequestMapping 注解 @RestController : return 内容为字符串 @RequestMapping:return 内容为方法或者页面 2.mvn:spring-boot:run 指令使用(执行挺消耗时间的,而且每次执行该指令还 ...
分类:
编程语言 时间:
2021-06-18 19:53:59
阅读次数:
0
DI依赖注入 set方式注入【重点】 依赖注入:set注入 依赖:bean对象的创建依赖于容器 注入:bean对象中的所有属性,由容器来注入 【环境搭建】 1.真实测试对象 2.复杂类型 @Data public class Student { private String name; privat ...
分类:
其他好文 时间:
2021-06-18 19:53:42
阅读次数:
0
这个注解是java的,不是spring的。 Constructor(构造方法) -> @Autowired(依赖注入) -> @PostConstruct(注释的方法) package com.example.studySpringBoot.util; import com.example.stud ...
分类:
其他好文 时间:
2021-06-18 19:42:28
阅读次数:
0
两种情况 > 1. vs code 自带编译的 > 在 task.josn 里 > "args": ["-m32","-g","-std=c++11","${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}.exe"], > 加上 "- ...
分类:
其他好文 时间:
2021-06-18 19:35:03
阅读次数:
0
添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 添加yml配置 spring: re ...
分类:
编程语言 时间:
2021-06-18 19:19:32
阅读次数:
0
Java Web P1 0导学 SSM = Spring SpringMVC iBatis P2 01_今日导学 Junit单元测试:代码不用放在main方法中运行了,是白盒测试的一种。 反射:后期框架设计的灵魂。 执行后,结果为绿色表示测试成功,红色测试失败。只看输出不看颜色,不会看出正确与否。而 ...
分类:
其他好文 时间:
2021-06-18 19:15:28
阅读次数:
0
日期:2021/6/16 4.1 今日完成任务情况以及遇到的问题。 崔红梅:学习spring框架。 已完成 包凤梅:建立数据库,建立需要的数据表。 已完成 冯永萍:设计前端页面。 已完成 王 芬:调整类的层次关系和关联关系,定义软件数据库表结构。 已完成 4.2 成员贡献时间 崔红梅:0.8h 包凤 ...
分类:
其他好文 时间:
2021-06-18 19:13:46
阅读次数:
0
项目博客:https://www.cnblogs.com/fishpro/p/spring-boot-study-cxfclient.html 学习博客:https://www.cnblogs.com/yolanda-lee/p/4907380.html ...
分类:
Web程序 时间:
2021-06-18 18:47:41
阅读次数:
0
容器功能 在idea-springboot工程中新建一个springboot项目 b-springboot-annotation,新建一个bean包表示要让容器创建的类和一个config包表示存放配置类,具体使用如下 bean包中有两个类User和Pet package com.studymysel ...
分类:
编程语言 时间:
2021-06-17 17:12:52
阅读次数:
0
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.20</version> <scope>provided</scope> </dependency> ...
分类:
其他好文 时间:
2021-06-17 17:08:31
阅读次数:
0