1 Star 0 Fork 0

辉少在线滴滴 / 辉少运维报表填写

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.07 KB
一键复制 编辑 原始数据 按行查看 历史
辉少在线滴滴 提交于 2023-03-07 15:52 . 更新声明

仅仅提供一个填报的模板,采用邮箱发送告警信息,出于隐私考虑,邮箱配置已经删除

邮箱静态变量的代码在此提供

public class EmailCommon {
    public static final String MY_EMAIL = "@qq.com";
    public static final String TO_EMAIL = "@qq.com";
    public static final String CC = "@qq.com";
    public static final String KEY_SUBJECT = "每日key发送!";
    public static final String SERVER_SUBJECT = "系统告警!";
    public static final String EMAIL_SEND_SUCCES = "邮件发送成功!!!";
    public static final String EMAIL_SEND_ERROR = "邮件发送失败!!!";
    public static final String WRITE_FORMS_FAILURE = "写入表单失败,来源于 :";
}

以及yml文件的配置,涉及了秘钥隐私,在此提供模板

server:
  # 端口
  port: 8089
  
  servlet:
    context-path: /

spring:
  minio:
    access-key: access-key
    secret-key: secret-key
    url: http://ip:9000/
  application:
    name: demo
  mvc:
    # 解决高版本Swagger异常需要
    pathmatch:
      matching-strategy: ant_path_matcher
  datasource:
    druid:
      driver-class-name: com.mysql.cj.jdbc.Driver
      url: jdbc:mysql://ip:3306/show_data?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
      username: root
      password: password
  mail:
    host: smtp.qq.com
    port: 465
    username: @qq.com
    password: password
    default-encoding: UTF-8
    properties:
      mail:
        smtp:
          socketFactory:
            class: javax.net.ssl.SSLSocketFactory
      debug: true


# Mybatis-plus配置
mybatis-plus:
  #配置Mapper映射文件
  mapper-locations: classpath*:/mapper/*Mapper.xml
  # 配置MyBatis数据返回类型别名(默认别名是类名)
  type-aliases-package: com.huishao.demo.entity
  configuration:
    # 自动驼峰命名
    map-underscore-to-camel-case: false

logging:
  level:
    com.szl.yeb.mapper: debug

如有问题需要交流,请联系 2133048524@qq.com

Java
1
https://gitee.com/huishao-online-didi/huishao.git
git@gitee.com:huishao-online-didi/huishao.git
huishao-online-didi
huishao
辉少运维报表填写
master

搜索帮助