Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leelance authored Jul 2, 2016
1 parent bca4335 commit 3cb2f43
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions spring-boot-cache-ehcache/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# spring-boot-hello, 依赖spring-boot-parent,集成log4j2
# spring-boot-cache-ehcache, 依赖spring-boot-parent
* [spring-boot](http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/)
* [Ehcache2.10.*](http://www.ehcache.org/generated/2.10.2/html/ehc-all/)

```
@Configuration
@ComponentScan
@EnableAutoConfiguration
public class Application {
public static void main(String[] args) throws Exception {
SpringApplication.run(Application.class, args);
}
@EnableCaching
@EnableScheduling
@SpringBootApplication
public class SimpleApplication {
public static void main(String[] args) {
SpringApplication.run(SimpleApplication.class, args);
}
}
```
###application.properties
```
# IDENTITY (ContextIdApplicationContextInitializer)
spring.application.index=Hello.v1.1
spring.application.name=Hello Boot
spring.application.index=Cache.v1.1
spring.application.name=Cache Boot
#Server
server.port=80
server.jsp-servlet.class-name=org.apache.jasper.servlet.JspServlet
#MVC
spring.mvc.view.prefix=/WEB-INF/views/
#LOG
logging.config=classpath:log4j2.xml
spring.cache.type=ehcache
spring.cache.ehcache.config=classpath:ehcache.xml
```

0 comments on commit 3cb2f43

Please sign in to comment.