Code Monkey home page Code Monkey logo

spring-tutorial's Introduction

Spring Tutorial

Spring 教程

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

Spring 框架的核心技术。如;IOC 依赖注入、AOP、数据绑定等。

Spring 在数据库领域的应用。如:JDBC、ORM、事务等。

Spring 在 web 领域的应用。如:Spring MVC、WebSocket 等。

Spring 与第三方框架、库集成。如:Cache、Scheduling、JMS、JMX 等。

Security

Spring 在安全领域的应用。如:认证、授权 等。

教程说明

环境

重要库版本

库或工具 版本 说明
Spring Framework 5.0.2.RELEASE
JDK 1.8+ Spring5 开始,要求 JDK8+
Maven 3.5.2 本项目使用 maven 作为构建工具。
jetty-maven-plugin 9.4.8.v20171121 Jetty 可作为 web 服务器和 servlet 容器。此插件可以免部署启动 web app。
tomcat7-maven-plugin 2.2 Tomcat 可作为 web 服务器和 servlet 容器。此插件可以免部署启动 web app。Tomcat 早已经发布 Tomcat8,但是 maven 插件 一直没有提供 tomcat8 的支持(最后更新为 2013 年)。

项目

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

codes 使用说明

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

Tomcat7 嵌入式服务器启动:

$ mvn tomcat7:run -Dmaven.test.skip=true

Jetty 嵌入式服务器启动:

$ mvn jetty:run -Dmaven.test.skip=true

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

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

docs 使用说明

/docs 遵循 Gitbook 规范,可以生成静态 html 电子书。

👉 spring-tutorial 文档在线阅读

扩展学习:更多 Java 技术栈知识(JavaSE/JavaEE/Java 库/Java 工具/Java 框架)可以在 java-stack 了解。

规范

  • 本项目的文档部分,遵循 Gitbook 规范,以便生成电子书。
  • 推荐使用 IDEA 作为 IDE
  • 代码规范使用 阿里巴巴 Java 开发手册
    • 如果你使用 IDEA 作为你的 IDE,推荐安装 Alibaba-Java-Coding-Guidelines 插件来做静态检查。

spring-tutorial's People

Contributors

dunwu avatar ruanwenjun avatar

Watchers

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