Code Monkey home page Code Monkey logo

communities's Introduction

neu社区

资料

Spring官方
Spring框架文档
spring-boot文档
es
Github deploy key
Github OAuth
Bootstrap
maven资料库
okHttp
thymeleaf基本用法
UML图
Mybatis整合Spring/Springboot
H2
Thymeleaf使用文档
html转译与反转译
ErrorHandler错误处理机制
JQuery API文档

插件

Flyway
Flyway简单实例
Lombok maven Lombok
IDEA热部署Automatic Restart(清除浏览器缓存:ctrl+shift+delete)
Mybatis Generator
Mybatis Generator分页插件
common lang
Moment.js—JavaScript 日期处理类库
Markdown插件
MarkdownToHtml

所用工具

okHttp
json解析工具

脚本

CREATE TABLE USER(
    ID INT AUTO_INCREMENT PRIMARY KEY NOT NULL,
    ACCOUNT_ID VARCHAR(100),
    NAME VARCHAR(50),
    TOKEN CHAR,
    GMT_CREATE BIGINT,
    GMT_MODIFIED BIGINT
);
select *
from table_name 
[LIMIT N],[ OFFSET M]

-- range        page(页码)  offset(偏移量)           size(每页大小)
-- 0-5(0,5)     1           N = size * (page - 1)    5
-- 6-10(5,5)    2            
-- 11-15(10,5)   
    M = 5
    N = size * (page - 1)
    pageCount(页数) = total % offset = 0 ? total/offset : total/offset+1            
mvn flyway:migrate   //将更新的脚本同步到数据库
mvn -Dmybatis.generator.overwrite=true mybatis-generator:generate   //do的创建
windows用\  mac用/  不然运行成功了还是没有文件生成?
generator分页插件:<plugin type="org.mybatis.generator.plugins.RowBoundsPlugin"></plugin>
$.ajax({
        type: "POST",
        url: "/comment",
        contentType: 'application/json',
        data: JSON.stringify({
            "parentId": id,
            "content": content,
            "type": 1
        }),
        success: function (response) {
            console.log(response)
        },
        dataType: "json "
    });

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.