摘要: 在开发中,我们经常会遇到如下过程:比如用户注册后,会发送邮件到用户的注册邮箱上,在spring中常用事件监听机制来执行。以下为相关代码。 1、首先自定义事件源。 public class DeviceStatusEvent extends ApplicationEvent { private Obj 阅读全文
posted @ 2020-04-06 18:09 曾饺 阅读(843) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_41979215/article/details/100696219?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none 阅读全文
posted @ 2020-04-02 08:48 曾饺 阅读(715) 评论(0) 推荐(0) 编辑
摘要: swagger具体参数参考:https://www.cnblogs.com/xinglongbing521/p/10258818.html及https://blog.csdn.net/HiBoyljw/article/details/81110553 除了@ApiModelProperty用于实体类 阅读全文
posted @ 2020-04-02 08:42 曾饺 阅读(221) 评论(0) 推荐(0) 编辑
摘要: application.yml spring: datasource: type: com.zaxxer.hikari.HikariDataSource driver-class-name: com.mysql.cj.jdbc.Driver username: root password: 8558 阅读全文
posted @ 2020-03-17 15:27 曾饺 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 首先,先了解向上转型和向下转型: public class Person { private Integer age; private String name; } public class Student extends Person { private String student_no; } 阅读全文
posted @ 2020-03-13 11:03 曾饺 阅读(340) 评论(0) 推荐(0) 编辑
摘要: docker-compose.yml 和项目目录同级 version: '2' services: parking-client-mng: build: context: ./ dockerfile: ./parking-client-mng/Dockerfile restart: always v 阅读全文
posted @ 2020-03-13 10:20 曾饺 阅读(161) 评论(0) 推荐(0) 编辑
摘要: json: https://segmentfault.com/a/1190000015363286?utm_source=tag-newest https://www.cnblogs.com/-flq/p/10268064.html sql https://sqlzoo.net/ https://b 阅读全文
posted @ 2020-03-12 15:29 曾饺 阅读(130) 评论(0) 推荐(0) 编辑
摘要: dao层 package com.vinsuan.parkingclient.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins. 阅读全文
posted @ 2019-12-30 14:45 曾饺 阅读(2551) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/uotail/article/details/84673347 阅读全文
posted @ 2019-12-15 03:15 曾饺 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 安装软件:java、idea、maven、tomcat、git、editplus java:https://www.cnblogs.com/ssrs-wanghao/articles/8994856.html idea:https://blog.csdn.net/qq_44884269/articl 阅读全文
posted @ 2019-12-13 14:03 曾饺 阅读(239) 评论(0) 推荐(0) 编辑