摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> webSocket的配置类 package co 阅读全文
posted @ 2020-12-05 18:56 dkws-2019 阅读(1298) 评论(0) 推荐(0) 编辑
摘要: /* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, 阅读全文
posted @ 2020-06-29 15:59 dkws-2019 阅读(1454) 评论(0) 推荐(0) 编辑
摘要: public class PreviewFilter implements Filter { private static final List<String> KEYS = new ArrayList<>(); static { KEYS.add("notice"); KEYS.add("proc 阅读全文
posted @ 2020-06-29 15:13 dkws-2019 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 服务端搭建 : {application}-{profiles}.properties 这是读取配置文件的方式 {application}服务名{profiles}环境名 <dependency> <groupId>org.springframework.cloud</groupId> <artif 阅读全文
posted @ 2020-03-25 17:26 dkws-2019 阅读(324) 评论(0) 推荐(0) 编辑
摘要: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.6.RELEASE</version> </parent> <d 阅读全文
posted @ 2020-03-23 16:31 dkws-2019 阅读(156) 评论(0) 推荐(0) 编辑
摘要: spring: redis: ##默认redis客户端连接为0 可修改 database: 0 host: 127.0.0.1 port: 6379 cache_name: XiChuanRedis ##password: pool: ##连接池最大空闲连接 max-idle: 8 min-idle 阅读全文
posted @ 2020-03-23 12:28 dkws-2019 阅读(842) 评论(0) 推荐(1) 编辑
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 配置类:(实现redis的序列化) packa 阅读全文
posted @ 2020-03-10 14:48 dkws-2019 阅读(2255) 评论(0) 推荐(0) 编辑
摘要: 一对多查询 老师和学生:一个老师对应多个学生 package com.example.tkmappertest.vo; import com.example.tkmappertest.entity.Student; import com.example.tkmappertest.entity.Tea 阅读全文
posted @ 2020-03-09 15:00 dkws-2019 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 1、添加依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> </par 阅读全文
posted @ 2020-02-29 18:49 dkws-2019 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 1、开启binlog日志 vi /etc/my.cnf datadir=/var/lib/mysql //默认的数据位置 默认binlog日志的位置 server-id = 1 binlog_format=STATEMENT #这个是binlog日志的模式这个模式可以在binlog日志里面显示出in 阅读全文
posted @ 2020-02-24 21:19 dkws-2019 阅读(413) 评论(0) 推荐(0) 编辑