上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 使用目前 最稳定版本 redis 5.0.7(摘自官网的图片 记录下) 环境 centos 6.8 在一台上安装 redis5.0.7 (主机) (保证主机能够看到redis log) 克隆两台(从机) 主从复制 主要是修改redis.conf文件 达到的效果 这里没有设置主从机 日志 密码 1,2 阅读全文
posted @ 2020-01-18 01:36 wf.zhang 阅读(652) 评论(0) 推荐(0) 编辑
摘要: 环境 centos6.8 jdk 1.8 mysql 5.6 1.vim /etc/profile 命令进入编辑 g 到最后一行 i 开始插入 在最后一行加上下面的内容 export JAVA_HOME=/usr/local/jdk1.8.0_231 export MYSQL_HOME=/usr/l 阅读全文
posted @ 2020-01-12 11:31 wf.zhang 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 使用以下url 使用自己的数据库 这里是yml文件的格式 url: jdbc:mysql://localhost:3306/clouddb01?useSSL=true&serverTimezone=UTC&characterEncoding=UTF8 阅读全文
posted @ 2020-01-09 10:57 wf.zhang 阅读(631) 评论(0) 推荐(0) 编辑
摘要: @GetMapping("/user/{id}")public User getUser(@PathVariable("id") Integer id) { User user = new User(); user.setId(id); Example<User> example = Example 阅读全文
posted @ 2020-01-08 13:49 wf.zhang 阅读(3034) 评论(0) 推荐(0) 编辑
摘要: 这里使用的springboot2.2.2版本 没有报错发生也没有生成表 是yml的问题 下面有正确的yml 不需要 在启动类加 @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoC 阅读全文
posted @ 2020-01-08 12:57 wf.zhang 阅读(3548) 评论(0) 推荐(1) 编辑
摘要: /** * @author wf.zhang */ @RestController public class HelloController { @Autowired JdbcTemplate jdbcTemplate; @GetMapping("/query") public Map<String 阅读全文
posted @ 2020-01-07 22:27 wf.zhang 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 环境 idea2019.2 jdk1.8 数据库mysql 5.7 项目 结构 new ->Project 使用springboot快速搭建web项目 选好sdk next 填写项目信息 next 点Web-->勾选 Spring Web 点SQL->勾选 JDBC API 和 MySQL Driv 阅读全文
posted @ 2020-01-07 20:28 wf.zhang 阅读(1348) 评论(1) 推荐(1) 编辑
摘要: 项目结构 pom文件 本项目使用的SpringBoot 1.5.9版本 需要更高的版本直接替换版本号即可 父项目中的版本号可以管理整个项目 下面的web的版本号可以省略 <parent> <groupId>org.springframework.boot</groupId> <artifactId> 阅读全文
posted @ 2020-01-06 10:11 wf.zhang 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 1. 左连接,右连接,内连接,外连接的区别 内连接也叫连接,是最早的一种连接。还可以被称为普通连接或者自然连接,内连接是从结果表中删除与其他被连接表中没有匹配行的所有行,所以内连接可能会丢失信息。 外连接分为三种:左外连接,右外连接,全外连接。 其中左外连接:left join是以左表的记录为基础的 阅读全文
posted @ 2020-01-03 20:14 wf.zhang 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1.java数据类型 基本数据类型(原始数据类型) (3大类 8小类) 1个字节=8位 (1B=8bit) 【位是存储数据的最小单位,而字节是存储数据的基本单位】 byte --> 1个字节 (-128~127)能存最大的数127 short -->2个字节 (-32768~32767)约3万 整数 阅读全文
posted @ 2020-01-03 19:55 wf.zhang 阅读(199) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页