1 Star 0 Fork 0

小冰 / springboot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

简介

SpringBoot系列Demo代码

SpringBoot用的是2.1.0.RELEASE,Demo代码主要参照官方文档,以及百度、google写的,每一个子工程就是一个小案例,简单明了
这里的测试例子基本上跟博客的一样,没什么修改,大家看博客就好了

还是有很多人觉得这个项目太乱了,分不清子项目、父项目的关系,以及子项目直接的关系,我在这里简单描述一下

父项目是一个maven项目,继承spring-boot-starter-parent,同时引入了部分公用依赖

    <!--  父类继承spring-boot-starter-parent  -->
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.0.RELEASE</version>
        <relativePath/>
    </parent>

    <!-- 在父类引入一下通用的依赖 -->
    <dependencies>
        <!-- spring-boot-starter -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>

        <!-- springboot web(MVC)-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!-- springboot -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

        <!--lombok插件 -->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>

        <!--热部署工具dev-tools-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
            <scope>runtime</scope>
        </dependency>
    </dependencies>

每个子项目都是一个独立的SpringBoot项目,子项目直接继承父类

    <!--继承父类-->
    <parent>
        <groupId>cn.huanzi.qch</groupId>
        <artifactId>parent</artifactId>
        <version>1.0.0</version>
    </parent>

每个子项目都是SpringBoot的一个知识点或者说技能点,具体见名思意!子项目相互之间并无关系,具体的知识点介绍都有对应的博客,详情请看下方的“前往博客查看详情”

仓库地址

国外:https://github.com/huanzi-qch/springBoot
国内:https://gitee.com/huanzi-qch/springBoot

前往博客查看详情

具体介绍请看我的博客《SpringBoot系列》

项目 博客
springboot-aop SpringBoot系列——aop 面向切面
springboot-async SpringBoot系列——@Async优雅的异步调用
springboot-banner SpringBoot系列——花里胡哨的banner.txt
springboot-cors SpringBoot系列——CORS(跨源资源共享)
springboot-elasticsearch SpringBoot系列——ElasticSearch
springboot-filter SpringBoot系列——Filter 过滤器
springboot-https SpringBoot系列——启用https
springboot-i18n SpringBoot系列——i18n国际化
springboot-jackson SpringBoot系列——Jackson序列化
springboot-jar-war SpringBoot系列——快速构建项目
SpringBoot系列——jar包与war包的部署
springboot-jpa SpringBoot系列——Spring-Data-JPA
SpringBoot系列——Spring-Data-JPA(升级版)
SpringBoot系列——Spring-Data-JPA(究极进化版) 自动生成单表基础增、删、改、查接口
springboot-loadmyprofiles SpringBoot系列——加载自定义配置文件
springboot-logback SpringBoot系列——Logback日志,输出到文件以及实时输出到web页面
springboot-mail SpringBoot系列——mail
springboot-mybatis SpringBoot系列——MyBatis整合
springboot-redis SpringBoot系列——Redis
springboot-security SpringBoot系列——Security + Layui实现一套权限管理后台模板
开源一套简单通用的后台管理系统
springboot-swagger2 SpringBoot系列——Swagger2之Swagger UI,API实时接口文档
springboot-thymeleaf SpringBoot系列——Thymeleaf模板
springboot-timer SpringBoot系列——定时器
springboot-uniapp-mui SpringBoot系列——基于mui的H5套壳APP开发web框架
SpringBoot系列——PC端、移动端页面适配方案
移动端App uni-app + mui 开发记录
springboot-websocket SpringBoot系列——WebSocket
WebSocket+Java 私聊、群聊实例

QQ群

有事请加群,有问题进群大家一起交流! QQ群名:Java交流群-huanzi-qch QQ群号:1015379123
注:如果图片加载不出来请点击查看这里

捐献

请注意,作者五行缺钱,如果喜欢这个项目,请随意打赏!

支付宝

注:如果图片加载不出来请点击查看这里

微信

注:如果图片加载不出来请点击查看这里

学习资料

Spring全家桶的GitHub:https://github.com/spring-projects
SpringBoot官方文档:https://spring.io/projects/spring-boot
StringBoot官方GitHub:https://github.com/spring-projects/spring-boot
SpringBoot官方的简单引导案例:https://github.com/spring-projects/spring-boot/tree/v2.1.6.RELEASE/spring-boot-samples

这些资料有丰富的文档介绍、代码示例

MIT License Copyright (c) 2020 huanzi-qch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

SpringBoot系列Demo代码,每个子项目都是SpringBoot的一个知识点或者说技能点且都有对应的博客介绍,代码开箱即用适合新手学习或老司机复习 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/yonghu2018/springboot.git
git@gitee.com:yonghu2018/springboot.git
yonghu2018
springboot
springboot
master

搜索帮助