Git Product home page Git Product logo

cloud's Introduction

spring cloud演示项目

尝试学习cloud

系统

  1. 使用spring cloud Greenwich
  2. springboot 2.1.4

说明

非常重要

  • idea非单例启动: edit configuration-> allow parallel run 可以启动多个实例
  • idea控制台乱码解决方案:
    1. idea->help->edit custom vm option ,添加-Dfile.encoding=UTF-8
    2. tomcat->vm option ,添加-Dfile.encoding=UTF-8
  • thymeleafsecurity5为了安全需要给密码添加加密方式,否则会报 java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null"
  • 在poi4.0.0中org.apache.poi.POIXMLDocument;修改位置到org.apache.poi.ooxml.POIXMLDocument; 导致docx转换工作无法使用,目前只能使用3.17版本
  • jpa相关:
    1. jpa需要添加 database-platform: org.hibernate.dialect.MySQL5InnoDBDialect来创建默认引擎为InnoDB的数据库表,否则默认为MyISAM
    2. 表名@Table(javax.persistence)
    3. 索引@Table(***,indexes = {@Index(name = "索引名", columnList = "字段")})
    4. hibernate大数据字段:@Lob
    5. @Column(name = "列名", length = 250(length只对String字段类型有效),columnDefinition="数据库自定义DDL")
    6. @Data(lombok.Data) 自动构建getter,setter,toString等
    7. @Entity标识实体类
    8. @org.hibernate.annotations.Table(appliesTo = "指定表", comment = "表注释")
  • Interceptor(拦截器):
    1. MybatisCustomInterceptor mybatis拦截器,用于对insert,update方法进行拦截,自动添加新增时间/更新时间 原理通过拦截sql类型进行判断是否是insert/update,再通过查询字段dateCreate进行反射赋值.

使用

发布历史

ver.1.0.0.BETA

初版

cloud's People

Contributors

filusilia avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.