Giter Site home page Giter Site logo

sunyinjie / spring-notes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dunwu/spring-tutorial

0.0 2.0 0.0 2.43 MB

:book: Spring学习笔记。

Home Page: https://dunwu.gitbooks.io/spring-notes/

License: Apache License 2.0

Java 87.16% CSS 1.01% FreeMarker 1.95% HTML 0.02% JavaScript 9.85%

spring-notes's Introduction

spring-notes

Spring 学习笔记。

以简单范例来展示 spring 在 web 开发中的各种应用。

spring-notes 文档在线阅读

内容

  • spring-notes-helloworld:spring第一个简单例子。

  • spring-notes-ioc:spring的依赖注入范例。

  • spring-notes-aop:spring的切面编程范例。

  • spring-notes-db:spring 集成不同数据源的范例。

  • spring-notes-orm:spring 集成 orm 框架的范例。

    hibernate 和 mybatis 都是比较流行的 orm 框架。

    hibernate 功能更强大,但是也更复杂,学习周期更长,数据调优也更为复杂。

    相对于新手,mybatis 更容易上手,因此这里选用 mybatis 来展示如何集成。

  • spring-notes-rmi:spring的远程调用范例。分为server端和client端。

  • spring-notes-scheduler:spring 的调度任务范例。

  • spring-notes-sccurity:spring 的安全框架范例。

    spring 自身的安全框架 spring-security 相比 shiro 较为重型化,并且 shiro 可以满足大部分的应用,所以这里选用 shiro。

  • spring-notes-validator:spring 的校验器范例。自定义一个简单的校验器。

  • spring-notes-mvc:将展示 spring mvc 的特性。

  • spring-notes-boot:spring-notes-boot 是 spring 的快速构建框架。

  • spring-notes-websocket:spring-notes-websocket 展示 spring 如何支持 HTML5 重要新特性 websocket。

  • spring-notes-common:spring-common 是一个工具集。

说明

环境说明

本项目运行所需要的重要库版本:

  • Jdk:1.8

  • Spring:4.1.4.RELEASE

嵌入式服务器版本:

  • Jetty:Jetty 9

  • Tomcat:Tomcat 7

项目结构

  • codes:代码目录。
  • docs:文档目录。

codes 使用说明

为了便于展示示例,所有 war 包形式的项目都可以使用 maven 插件快速启动嵌入式服务器,支持 Tomcat 和 Jetty 两种方式。

Tomcat7 嵌入式服务器启动:

$ mvn tomcat7:run

Jetty 嵌入式服务器启动:

$ mvn jetty:run

如果子项目中无特殊说明,默认端口配置为 8089,当然,你可以自己指定。

启动成功后,访问 http://localhost:8089

docs 使用说明

docs 部分已经使用 Gitbook 生成电子书:

spring-notes 文档在线阅读

约定

  • 本项目的文档部分,遵循 Gitbook 规范,以便生成电子书。

spring-notes's People

Watchers

James Cloos avatar Aiweiergou 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.