# SpringBoot-Learning **Repository Path**: wuyoushan/SpringBoot-Learning ## Basic Information - **Project Name**: SpringBoot-Learning - **Description**: 学习SpringBoot - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-02-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## SpringBoot-Learning 本项目内容为Spring Boot教程程序样例。 此代码的相应章节完全参考自 [程序猿DD](http://blog.didispace.com) 想查看相应代码博客,可以根据以下内容进行查看。 作者博客:http://blog.didispace.com 作者GitHub:https://github.com/dyc87112/SpringBoot-Learning 作者码云地址:http://git.oschina.net/didispace/SpringBoot-Learning - Spring Boot系列博文:http://blog.didispace.com/categories/Spring-Boot/ - Spring Cloud系列博文:http://blog.didispace.com/tag/spring-cloud/ - Spring Cloud中文社区:http://bbs.springcloud.com.cn/ 其中在照着[程序猿DD](http://blog.didispace.com)写代码的过程中发现了一些问题。可能是由于使用的版本不一样所导致的。在上面的代码中springboot使用的版本为1.4.1.RELEASE版,而程序猿DD使用的版本为1.3.x.RELEASE。例如: #### 1. 在chapter4-2-2,chapter4-2-3,chapter4-2-4,chapter4-2-5 使用log4j记录日志中pom.xml引入依赖的xml代码为 ```xml org.springframework.boot spring-boot-starter-log4j ``` 得添加相应的版本号方可实现log4j记录日志 ```xml org.springframework.boot spring-boot-starter-log4j 1.3.8.RELEASE ``` #### 2. 在chapter4-4-1 缓存支持:注解配置与EhCache使用。原来的代码中application.properties配置文件没有添加 #使用Encache缓存配置 spring.cache.ehcache.config=classpath:encache.xml 则在代码的运行过程中,程序不会使用encache作为缓存提供者