1.@RestController 与 @RequestMapping 注解 @RestController : return 内容为字符串 @RequestMapping:return 内容为方法或者页面 2.mvn:spring-boot:run 指令使用(执行挺消耗时间的,而且每次执行该指令还 ...
分类:
编程语言 时间:
2021-06-18 19:53:59
阅读次数:
0
这个注解是java的,不是spring的。 Constructor(构造方法) -> @Autowired(依赖注入) -> @PostConstruct(注释的方法) package com.example.studySpringBoot.util; import com.example.stud ...
分类:
其他好文 时间:
2021-06-18 19:42:28
阅读次数:
0
1. 列举出所有的数据库 命令行查看帮助 sqoop help 列出hadoop02主机所有的数据库 sqoop list-databases --connect jdbc:mysql://hadoop02:3306/ --username root --password 123456 查看某一个数 ...
分类:
其他好文 时间:
2021-06-18 19:33:43
阅读次数:
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
1.选择依赖 SpringWeb,JDBC API, MybatisFramework, MysqlDriver 2.application.yml 将 application.properties改为application.yml(使用更简洁), application.yml文件内容如下: se ...
分类:
编程语言 时间:
2021-06-17 17:15:52
阅读次数:
0
容器功能 在idea-springboot工程中新建一个springboot项目 b-springboot-annotation,新建一个bean包表示要让容器创建的类和一个config包表示存放配置类,具体使用如下 bean包中有两个类User和Pet package com.studymysel ...
分类:
编程语言 时间:
2021-06-17 17:12:52
阅读次数:
0
案例四:封装共有操作 封装一个数据库的会话的类 点击查看详细代码 import java.sql.*; public class ConnectionUtil { /** * 获取连接对象的方法,返回一个Connection * 方法体中是共有操作:加载驱动,建立连接 */ public stati ...
分类:
数据库 时间:
2021-06-17 17:10:30
阅读次数:
0