about learning Spring Boot via examples. Spring Boot 教程、技术栈示例代码,快速简单上手教程。

Overview

Spring Boot 学习示例

Spring Boot 2.0 Mysql 5.6 JDK 1.8 Maven license

Spring Boot 使用的各种示例,以最简单、最实用为标准,此开源项目中的每个示例都以最小依赖,最简单为标准,帮助初学者快速掌握 Spring Boot 各组件的使用。

Spring Boot 中文索引  |   Spring Cloud学习示例代码  |   Spring Boot 精品课程

English  |   Github地址  |   码云地址  |   Spring Boot 1.0


推荐程序员都关注的一个漫画公众号

关注后,回复:java 获取超过 10万 人领取的 Java 知识体系/面试必看资料。

Spring Boot 2.0

Spring Boot 2.0 最全使用教程

Favorites-web:云收藏(Spring Boot 2.0 实战开源项目)

示例代码

参考文章

下方示例已经全部升级到 2.X

示例代码

参考文章

Spring Boot 实战:我们的第一款开源项目


如果大家想了解关于 Spring Boot 的其它方面应用,也可以以issues的形式反馈给我,我后续来完善。

关注公众号:纯洁的微笑,回复"springboot"进群交流

Comments
  • spring-boot-shiro 提示缺失 bean authenticator

    spring-boot-shiro 提示缺失 bean authenticator

    现象: 依据提供的示例中的源码参考写了一个(仅表结构有所差异),启动时提示如下错误信息:


    APPLICATION FAILED TO START


    Description:

    Parameter 0 of method authorizationAttributeSourceAdvisor in com.shenma.pmp.config.ShiroConfig required a bean named 'authenticator' that could not be found.

    Action:

    Consider defining a bean named 'authenticator' in your configuration.

    存在的主要差异在表结构方面,config、dao、service、controller 一样,请问是什么原因呢?非常感谢!

    opened by Aaronffp 5
  • Please add an English version of the documents

    Please add an English version of the documents

    Hello,

    This is a very great repository. However, will you please add an English version for all the documents so non-Chinese speaker can understand the projects here better?

    Thanks!

    opened by linhtch90 4
  • Bump shiro-spring from 1.7.0 to 1.7.1 in /spring-boot-shiro

    Bump shiro-spring from 1.7.0 to 1.7.1 in /spring-boot-shiro

    Bumps shiro-spring from 1.7.0 to 1.7.1.

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 3
  • 请问启动Hello word 项目为什么会用到dfs

    请问启动Hello word 项目为什么会用到dfs

    请问启动Hello word 项目为什么会用到dfs

    WARNING] The POM for org.csource:fastdfs-client-java:jar:1.27-SNAPSHOT is missing, no dependency information available

    org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-devtools true
    opened by zhen-one 3
  • 跑不起来,入门就是bug,这些烂项目才是新手学习最大的障碍

    跑不起来,入门就是bug,这些烂项目才是新手学习最大的障碍

    v-mysql is up-to-date Starting v-nginx ... error

    ERROR: for v-nginx Cannot start service nginx: driver failed programming external connectivity on endpoint v-nginx

    opened by puchao-org 3
  • maven dependency can not download ???

    maven dependency can not download ???

    这个项目里用的fastdfs-client-java 一直下不下来 用外网也不行 org.csource fastdfs-client-java 1.27-SNAPSHOT

    fastdfs-client不应该用下面这个么 ?

     <dependency>
            <groupId>com.github.tobato</groupId>
            <artifactId>fastdfs-client</artifactId>
            <version>1.26.1-RELEASE</version>
        </dependency>
    
    opened by yanghui8837 3
  • build fail

    build fail

    build fail

    https://github.com/ityouknow/spring-boot-examples/tree/master/spring-boot-helloWorld

    http://www.ityouknow.com/springboot/2016/01/06/spring-boot-quick-start.html

    image

    opened by xgqfrms 2
  • FASTDFS工具类封装有问题

    FASTDFS工具类封装有问题

    trackerServer = trackerClient.getConnection(); storageServer = trackerClient.getStoreStorage(trackerServer); 使用时获取,不应该直接静态化掉,当服务某个节点故障时,正好是你静态化的节点就会导致服务不可用。破化了原有可用性。

    opened by AlexLiy1 2
  • 关于模块管理的小建议

    关于模块管理的小建议

    建议同时采用聚合和继承,使用<dependencyManagement> 管理 spring-boot-dependencies,这样可以更方便的管理 SpringBoot 版本,也方便约束一些其它包(比如 mybatis-plus-boot-starter )的版本,

    比如/spring-boot-examples/pom.xml

    <project>
        <modelVersion>4.0.0</modelVersion>
    
        <groupId>com.example</groupId>
        <artifactId>spring-boot-examples</artifactId>
        <version>2.0.0</version>
        <packaging>pom</packaging>
    
        <modules>
            <module>spring-boot-redis</module>
        </modules>
    
        <properties>
            <java.version>11</java.version>
            <maven.compiler.source>11</maven.compiler.source>
            <maven.compiler.target>11</maven.compiler.target>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        </properties>
    
        <dependencyManagement>
            <dependencies>
                <dependency>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-dependencies</artifactId>
                    <version>2.3.7.RELEASE</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
            </dependencies>
        </dependencyManagement>
    </project>
    

    /spring-boot-examples/spring-boot-redis/pom.xml

    <project >
        <modelVersion>4.0.0</modelVersion>
    
        <parent>
            <groupId>com.example</groupId>
            <artifactId>spring-boot-examples</artifactId>
            <version>2.0.0</version>
        </parent>
    
        <artifactId>spring-boot-redis</artifactId>
    
        <dependencies>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-data-redis</artifactId>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-web</artifactId>
            </dependency>
        </dependencies>
    </project>
    
    opened by icefery 2
  • Some questions

    Some questions

    hi, I'm new to spring boot and I am trying to us e@jointable annotation. I have a problem that I have mentioned in Stackoverflow. I will be happy if you give me a chance to answer my question and solve my problem. https://stackoverflow.com/q/61070135/9276162 thank you for your further response.

    opened by nejatian 2
Owner
纯洁的微笑
Open source is a spirit, I enjoy it.
纯洁的微笑
An examples of creating test records in the database with Spring Boot + Spring Data + JPA usage.

Spring Boot + JPA — Clear Tests An examples of creating test records in the database with Spring Boot + Spring Data + JPA usage. Check out the article

Semyon Kirekov 8 Nov 24, 2022
循序渐进,学习Spring Boot、Spring Boot & Shiro、Spring Batch、Spring Cloud、Spring Cloud Alibaba、Spring Security & Spring Security OAuth2,博客Spring系列源码:https://mrbird.cc

Spring 系列教程 该仓库为个人博客https://mrbird.cc中Spring系列源码,包含Spring Boot、Spring Boot & Shiro、Spring Cloud,Spring Boot & Spring Security & Spring Security OAuth2

mrbird 24.8k Jan 6, 2023
Code katas for learning Spring® and Spring Boot.

What is the spring-course? The Spring course consists of two related tutorials that teach developers about Spring Framework and then Spring Boot. The

BNY Mellon 445 Nov 20, 2022
Projeto básico de como utilizar Spring Boot enviando email via GMail

Projeto de Envio de Email Projeto simples utilizando Spring Boot para enviar email utilizando contas do Gmail. Vídeo: https://youtu.be/so3nq5NapHA Pré

null 2 Sep 22, 2022
100+ Spring Boot Articles, Tutorials, Video tutorials, Projects, Guides, Source code examples etc

YouTube Channel - Spring Boot Tutorial Subscribe for future video and updates Spring Boot Tutorial on YouTube Newly published spring boot tutorials (2

Ramesh Fadatare 1.2k Jan 2, 2023
This repository includes selenium web driver tests examples using spring boot application.

Selenium Web Driver Tests This repository includes selenium tests examples using custom spring boot application. Overview Run tests Additional Informa

Denys Vozniuk 4 Nov 27, 2022
e-Learning restful application with Spring boot

eLearning project backend This project was done as part of our Enterprise Application (EA) course project in Maharishi International University A Micr

Yonas Hailu 2 Mar 28, 2022
Spring GraphQL examples using Netflix DGS, GraphQL Java and Spring GraphQL

spring-graphql-sample Spring GraphQL examples using the following frameworks and libraries: Netflix DGS(Domain Graph Service) framework Spring GraphQL

Hantsy Bai 56 Dec 20, 2022
This repository contains source code examples to support my course Spring Data JPA and Hibernate Beginner to Guru

Spring Data JPA - Spring Data JPA This repository contains source code examples to support my course Spring Data JPA and Hibernate Beginner to Guru Co

John Thompson 8 Aug 24, 2022
Spring Boot Login and Registration example with MySQL, JWT, Rest Api - Spring Boot Spring Security Login example

Spring Boot Login example with Spring Security, MySQL and JWT Appropriate Flow for User Login and Registration with JWT Spring Boot Rest Api Architect

null 58 Jan 5, 2023
CVE-2021-2109 && Weblogic Server RCE via JNDI

Description Vulnerability in the Oracle WebLogic Server product of Oracle Fusion Middleware (component: Console). Supported versions that are affected

Al1ex 29 Nov 21, 2022
Get notified with available vaccination centres via SMS

About A simple spring boot application that can track vaccine availability and automatically sends a SMS alert with the avilable centers Features Dose

Vic 21 Nov 16, 2022
Live video out from your DJI FPV Goggles via USB.

DigiView is an Android app that allows you to get a live preview from your DJI FPV Goggles (V1 & V2). Working with Android 7+ and devices supporting U

Fpv Out Club 235 Dec 19, 2022
Drone - A service via REST API that allows clients to communicate with drones

Drone - A service via REST API that allows clients to communicate with drones (i.e. **dispatch controller**). The specific communication with the drone is outside the scope of this task.

Obinna Ogbonna 1 Jan 10, 2022
An Android library for member secretGFX group, This can be used to growing your apps and get more install via a simple banner view & native view and interstitial dialog.

GFX-AdPromote An Android library for member secretGFX group, This can be used to growing your apps and get more install via a simple banner view & nat

SAID MOTYA 10 Dec 25, 2022
Save local logcat via Java wiithout root

Save Logcat Android Simple way to save local logcat via Java wiithout root. It does not save full logcat from device, just only from the app. Save log

Menu Modder 5 Jun 30, 2022
SpringBoot service to pick up CAN messages retransmitted by CANBridge and extract certain values for reporting/monitoring/alerting via DataDog

SpringBoot service to pick up CAN messages retransmitted by CANBridge and extract certain values for reporting/monitoring/alerting via DataDog

Grumpy Cricket 2 Mar 12, 2022
Translating texts via Youdao eco-freely in only one class

Youdao4J Translating texts via Youdao Translator by one class. Need GSON. Usage Youdao4J did lots of works in the background. DO NOT create morr Youda

iceBear 8 Dec 11, 2022
Apache/Alibaba Dubbo <= 2.7.3 PoC Code for CVE-2021-25641 RCE via Deserialization of Untrusted Data; Affects Versions <= 2.7.6 With Different Gadgets

The 0xDABB of Doom - CVE-2021-25641-Proof-of-Concept Apache/Alibaba Dubbo <= 2.7.3 PoC Code for CVE-2021-25641 RCE via Deserialization of Untrusted Da

Dor Tumarkin 51 Apr 24, 2022