1 Star 0 Fork 0

中年英雄王叔叔 / springboot2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

springboot2

项目介绍

springboot2书籍学习

学习

热部署
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

热部署并不是说这边改了,这边就变,而是重启的时候会检查class文件的变化,启动时间变快

spring常用注解

@Controller 声明此类是一个MVC类 通常和@RequestMapping 一起使用 @Service 声明此类为业务处理类 通常和@Transactional配合使用 @RestController 同于rest服务 @Repository 声明此类是一个数据库或者其他NoSQL 访问类 @Component 声明此类是一个Spring管理的类,通常不是被上面所注解 @Configuration 声明此类是一个配置类,通常与@Bean连用

Spring通常有两种方式来引用Spring容器中管理的Bean,如qualifierLearning包中展示

空文件

简介

springboot2书籍学习 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

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

搜索帮助