Giter Club home page Giter Club logo

dictionary's Introduction

dictionary

个人代码库

运行说明

代码内容

运行说明

  • 语言版本 java10+tomcat9 spring boot最新版

  • 编译器版本 intellij idea 最新版

    • lombok插件(Slf4j日志打印、实体类简写等)//很好用,强推
    • easyCode插件(根据数据库自动生成实体类)//个人觉得没啥卵用,尤其引入lombok不需要get、set方法
    • SonarLint插件(代码检查插件)//可以帮助找出未使用的jar包,让代码变得更美观合理。但不能识别自定义断言
    • .ignore插件(git提交忽略文件)//有点好用
  • maven项目编译

    • 不建议使用idea自带的maven,下载依赖速度很慢

    • 版本3.5.3

    • 添加阿里镜像

      位置apache-maven-3.5.3\conf\settings.xml 在mirrors标签里面添加如下

      <mirror>
            <id>alimaven</id>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>        
      </mirror>
    • 修改idea相应配置

  • spring boot 无需手动编译,可以直接运行。注意mysql数据库配置。先在本地运行/doc/数据结构.sql文件

  • 运行启动成功之后访问http://localhost:4399/dictionary/

代码内容

类型互转

List2String,String2List etc.

Date2String,String2Date etc.

日期处理

获取当前时间、格式化日期、日期截取、日期增加减少年、月、日、时、分、秒、毫秒等

提供接口方式

实体类型类字段提供枚举接口

定时任务

多线程定时任务框架搭建

MinIO文件上传和下载

文件上传:选择文件multipartfile上传和base64文件上传

文件上传之后会返回文件地址。

文件下载:直接访问链接

http://localhost:4399/dictionary/tool/download/minio/test/db9c516a2a404a5ea0b87d0733812f09.jpg

download之前固定,/minio/test/db9c516a2a404a5ea0b87d0733812f09.jpg为上传文件之后返回的地址。

dictionary's People

Contributors

dongerkai avatar

Watchers

 avatar

dictionary's Issues

枚举提供接口

将实体类的字段比如类型,枚举之后提供接口展示,map类型

数据库配置文件

关系型数据库:mysql(数据即时增删查改)
非关系型数据库:redis(数据缓存)

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.