Giter VIP home page Giter VIP logo

springboot-jsp's Introduction

springboot-jsp 项目技术栈:

Springboot + JPA + NativeSQL + Shiro + JSP + Bootstrap ,本项目会持续更行更新,也欢迎各位同学一起完善。

使用springboot的好处是可以方便的集成到spring cloud中做分布式微服务。有兴趣的同学可以看我的另一个开源项目:https://git.oschina.net/lostad/spring-cloud-app 也是一个比较简单的入门级微服务Demo #为什么我选择JPA/Hibernate 而不是 Mybatis:

首先我本人在开发中习惯于先设计模型,再生成表结构,因为在项目初期的开发过程中,表结构并不稳定,可能经常会根据新有需求进行优化和调整,比如适当追加冗余字段等,个人感觉JPA在使用和后期维护比较方便,JPA同时支持ORM与NativeSQL,灵活性上不亚于Mybatis 。

本人在开发过程中也比较倾向于尽量使用简单映射,PO之间尽量少使用对象映射,复杂查询尽量使用sql,其它操作使用JPA/hiberante.

1、数据持久化完全依赖 JPA/Hibernate ,复杂查询尽量使用BaseJdbcService这个类,以避免可能的性能问题

2、保存和更新推荐使用 spring-data-jpa 提供的接口

3、数据缓存使用Redis,方便集群条件下的session共享以及分布式锁,请在本地安装redis服务:

Linux版本下载地址:

http://www.redis.io/

Windows 名安装版本:

https://github.com/MSOpenTech/redis/releases

springboot-jsp's People

Contributors

ssuhvs avatar

Watchers

 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.