Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: 杨开振

Rating No ratings yet

Spring框架是Java EE发的强有力的工具和事实标准,而Spring Boot采用“约定优于配置”的原则简化了Spring的发,从而成为业界流行的微服务发框架,已经被越来越多的企业采用。2018年3月Spring Boot的版本正式从1.x升级到了2.x,为了适应新潮流,本书将对Spring Boot 2.x技术行深讲解。 本书从一个*简单的工程始讲解Spring Boot企业级发,其内容包含全注解下的Spring IoC和AOP、数据库编程(JDBC、JPA和MyBatis)、数据库事务、NoSQL(Redis和MongoDB)技术、Spring MVC、Spring 5新一代响应式框架WebFlux、互联网抢业务、部署与监控、REST风格和Spring Cloud分布式发等。 本书内容紧扣互联网企业的实际要求,从全注解下Spring知识讲到Spring Boot的企业级发,对于Java发人员,尤其是初学Spring Boot的人员和需要从传统Spring转向Spring Boot发的技术人员,具有很高的参考价值。 【推荐语】 - 来自一线fa者的实战经验总结,赠送作者讲解的部分配套视频课程 - 从理论到实践,全面介绍Spring Boot 的原理和应用 - 以高并发场景作为实践案例,循序渐阐述Spring Boot 实用技巧 - 结合主流持久层框架MyBatis,讲述企业级Spring Boot 发要 当前互联网技术盛行,以Spring 框架为主导的Java 互联网技术成了主流,而基于Spring 技术衍生出来的Spring Boot,采用了“约定优于配置”的思想,极大地简化了Spring 框架的发。随着近些年来微服务技术的流行,Spring Boot 也成了时下炙手可热的热技术。2017 年9 月,Spring 框架出现了重大版本升级,从4.x 版本升级为了5.x 版本,随着这次升级,Spring Boot的版本也在2018年3月从1.x升级到了2.x。 本书重讲解Spring Boot 2.x 技术, 首先通过与传统Spring MVC 发行对比让读者融Spring Boot 的发中,然后再分别介绍全注解下的Spring IoC 和AOP、结合MyBatis 框架详解数据库编程和其事务发、流行的NoSQL(Redis和MongoDB)技术、Spring MVC 技术、REST风格网站搭建、Spring Security 技术、Spring 5.x 新发布的WebFlux 技术、高并发与锁、包、测试、监控和Spring Cloud 门等内容,从而帮助读者掌握企业级Spring Boot 发的要。 本书涵盖的内容从理论到互联网微服务后端的实践,无论是Java 互联网后端发人员,或是从传统Spring 项目转向Spring Boot 的发人员,还是Java 微服务发人员,都可以从本书中获益。 【作者】 杨振,精通Java 互联网技术发和实践,拥有十余年一线企业发经验,著有业内畅销书《深浅出MyBatis 技术原理与实战》和《Java EE 互联网轻量级框架整合发——SSM 框架(Spring MVC Spring MyBatis) 和Redis 实现 》,目前成为自由职业人,在淘宝教育平台上从事Java EE 互联网相关的在线培训工作。

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on guide to enterprise Java development with Spring Boot 2.x, moving from annotation-driven Spring fundamentals to persistence, transactions, NoSQL, web layers, and a first look at microservices. Best for Java developers new to Spring Boot or migrating from traditional Spring projects. 【Book Arc】 - **Opening (~0%–10%)**: Frames Spring Boot's "convention over configuration" philosophy and contrasts it with traditional Spring MVC, then walks through environment setup (Eclipse/IDEA, STS plugin, starter dependencies) and a minimal first project. - **Early (~10%–32%)**: Builds the Spring core under full annotation — IoC containers (BeanFactory vs. ApplicationContext), dependency injection, Bean lifecycles and scopes, @Profile environment switching, and AOP with custom interceptors and multiple aspects. - **Middle (~32%–48%)**: Covers database programming via JDBC, JPA/Hibernate, and MyBatis, including datasource and connection-pool configuration, then dives into Spring declarative transactions, isolation levels, and propagation behavior. - **Late (~48%–70%)**: Extends into NoSQL with Redis (RedisTemplate) and MongoDB, plus Spring MVC and REST-style web development. - **Ending (~70%–100%)**: Touches Spring Security, the reactive WebFlux framework, high-concurrency scenarios such as flash-sale/seckill business, packaging, testing, monitoring, and an introduction to Spring Cloud distributed development. 【Key Takeaways】 - **Convention over configuration is the organizing idea** (Opening): Spring Boot supplies sensible defaults and starter dependencies so you can run without XML or boilerplate, customizing only via properties when needed. - **Annotation-based IoC is the foundation for everything later** (Early): BeanFactory and ApplicationContext differ in capability, and Bean lifecycle, scope, and @Profile behavior determine how components are wired and switched across environments. - **AOP is explained from first principles** (Early): The book builds up interceptors and invocation proxies before showing @Aspect, @Pointcut, and advice ordering across multiple aspects. - **Persistence is taught across three stacks** (Middle): JDBC, JPA, and MyBatis are each configured and used, with MyBatis treated as the primary enterprise persistence layer. - **Transactions deserve careful attention** (Middle): Declarative transactions via @Transactional, isolation levels, timeouts, and propagation behavior are demonstrated — including the self-invocation pitfall where a class calling its own method bypasses proxy-based transaction semantics. - **NoSQL integration is practical** (Late): RedisTemplate handles connection acquisition and release automatically, and MongoDB is introduced alongside Redis for non-relational storage. - **The book reaches toward microservices** (Ending): Spring Cloud, WebFlux, security, and high-concurrency cases appear as an on-ramp rather than deep dives. 【Reading Tips】 - Deep-read the Early chapters on IoC, Bean lifecycle, and AOP — these underpin every later chapter and are where annotation-based Spring differs most from XML-era habits. - Skim environment setup (Chapter 2) if you already have a working IDE and starter project; return only for the auto-configuration explanation. - Treat the transaction propagation and self-invocation discussion as a hard spot worth re-reading with the code samples, since it is a common production bug source. - Use the persistence chapters as a reference: pick MyBatis if that is your stack, but read the JDBC transaction section first for grounding. - Read the Ending chapters as orientation, not mastery — they signal what to study next rather than fully teaching microservices. 【Coverage Limits】 The excerpts cover the book's framing, core Spring chapters, persistence, transactions, and the start of Redis, but do not include detailed content from the later WebFlux, security, monitoring, or Spring Cloud chapters. Specific chapter titles and figures beyond those shown are not covered.
Excerpt 1
升级到了 2.x。 是难得一见。Java 工程师、架构师一定不能错过本书。 本书重点讲解 Spring Boot 2.x 技术,首先通 互联网行业发展迅速,互联网后端开发是以基于 赠送作者讲解的部分配套视频课程 ——梁华辉 Java 的 Spring 框架为主导的,Spring Boot 极大地 过 与 传 统...
View in text
Excerpt 2
omponent public class BussinessPerson implements Person { @Autowired private Animal animal = null; @Override public void service() { this.animal.use(); } @Ov...
View in text
Excerpt 3
DataSourceShow implements ApplicationContextAware { ApplicationContext applicationContext = null; // Spring容器会自动调用这个方法,注入 Spring IoC容器 @Override public void...
View in text
Excerpt 4
} @Override @Transactional(isolation= Isolation.READ_COMMITTED, timeout = 1) public User getUser(Long id) { return userDao.getUser(id); } } 国 6.3 隔离级别 123 5....
View in text
Excerpt 5
com.springboot.chapter7.service.impl; /**** imports ****/ @Service 国 7.4 使用 Spring 缓存注解操作 Redis 167 get redis_user_1 #获取 id为 1的用户信息 ttl redis_user_1 #查询键的剩余超...
View in text
Excerpt 6
pt src="https://code.jquery.com/jquery-3.2.0.js"></script> <script type="text/javascript"> $(document).ready(function() { // 请求验证的 POJO var pojo = { id: null...
View in text
Excerpt 7
int result = userService.updateUserName(id, userName); ResultVo resultVo = new ResultVo(result>0, result > 0 ? "更新成功" : "更新用户【" + id + "】失败。"); return result...
View in text
Excerpt 8
) private String secret = null; @Autowired private UserDetailsService userDetailsService = null; 国 12.5 用户认证功能 287 12.5 用户认证功能 通过 12.3 节的内容,可以通过用户服务在后台定义用户、角...
View in text
Tags
AI categories
JavaBackendFramework
Publish Year: 2018
Language: English
File Format: PDF
File Size: 7.9 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…