Git Product home page Git Product logo

spring-tutorial's Introduction

spring-logo

Spring Boot Version maven Build

Spring Tutorial

spring-tutorial 是一个以简单范例来展示 spring 在 web 开发中的各种应用的教程。

文档

📖 spring-tutorial 文档在线阅读

扩展学习:

0️⃣ 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣
综合 核心 数据 Web 集成 安全

综合

核心

核心 章节主要针对:Spring 框架的核心技术。如;IOC 依赖注入、AOP、数据绑定等。

数据

数据 章节主要针对:Spring 在数据库领域的应用。如:JDBC、ORM、事务等。

Web

Web 章节主要针对:Spring 在 web 领域的应用。如:Spring MVC、WebSocket 等。

集成

集成 章节主要针对:Spring 与第三方框架、库集成。如:Cache、Scheduling、JMS、JMX 等。

其他

示例

说明

重要库版本

库或工具 版本 说明
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 年)。

启动

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

Tomcat7 嵌入式服务器启动:

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

Jetty 嵌入式服务器启动:

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

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

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

规范

  • 推荐使用 IDEA 作为 IDE
  • 代码规范使用 阿里巴巴 Java 开发手册
    • 如果你使用 IDEA 作为你的 IDE,推荐安装 Alibaba-Java-Coding-Guidelines 插件来做静态检查。

License

本博客所有文章除特别声明外,均采用 License: CC BY-NC-SA 4.0 许可协议。

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.