Giter Club home page Giter Club logo

rest-base's Introduction

rest-base

基于spring boot搭建的web基础框架,包含了web开发中常用的功能,如:缓存(redis)、日志、事务、JPA、shiro、安全、常用工具类、swagger2在线接口文档、跨域支持等,可以基于该项目快速进行公司内部的项目开发。

运行方式

  1. 本地创建数据库base,调整application-local.properties内的mysql和redis配置;
  2. 创建数据库后,直接运行BaseApplication,待项目启动后,在数据库内执行doc目录下的init.sql和index.sql;
  3. 访问http://localhost:8070/login/submit?username=admin&pwd=admin2017进行登录
  4. 访问http://localhost:8070/swagger-ui.html查看接口文档;
  5. 访问http://localhost:8070/admin/user/list测试接口;

redis安装方式

$ wget http://download.redis.io/releases/redis-4.0.2.tar.gz
$ tar xzf redis-4.0.2.tar.gz
$ cd redis-4.0.2
$ make

修改Redis配置文件redis.conf,改变配置:
daemonize yes
requirepass test!@#$%

$ src/redis-server
src/redis-cli

简书博客

http://www.jianshu.com/u/1182bf416662

csdn博客

http://blog.csdn.net/u014411966

rest-base's People

Contributors

q7322068 avatar

Watchers

 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.