spring boot 1.3이 출시되었다.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.3-Release-Notes
property가 바뀌었고, spring 4.2, spring security 4.0, cassandra, oauth2, jooq, HTTP persistent session 을 지원한다.
내가 볼 때 가장 좋은 것으로 spring-reload 대신 spring-devtool이다.
CoolReload(LiveReload)를 지원하고 Http세션도 잘 동작한다.
Developer Tools
Spring Boot 1.3 includes a new spring-boot-devtools
module which aims to improve the development-time experience. The module provides:
Sensible property defaults (for example disabling template caches)
Automatic application restarts
LiveReload support
Remote development support (including remote updates and remote debug via an HTTP tunnel).
Persistent HTTP sessions across restarts
See the updated documentation for more information.
cache auto-configuration을 지원한다.
Caching Auto-configuration
Auto-configuration is now provided for the following cache technologies:
EhCache
Hazelcast
Infinispan
Any compliant JCache (JSR 107) implementation
Redis
Guava
리눅스에서 서비스로 쓸 수 있다.
Fully executable JARs and service support
The Spring Boot Maven and Gradle plugins can now generate full executable archives for Linux/Unix operating systems. Furthermore you can now easily install these JARs asinit.d
or systemd
services. Running a fully executable JAR is as easy as typing:
$ ./myapp.jar
and to install it as an init.d
service:
$ sudo link -s /var/myapp/myapp.jar /etc/init.d/myapp
Additional information is available in the reference documentation.
임베디드 servlet 애노테이션을 제공한다.
Support for @WebServlet, @WebFilter and @WebListener
When using an embedded servlet container, automatic registration of @WebServlet
,@WebFilter
and @WebListener
annotated classes can now be enabled using@ServletComponentScan
.
몽고DB 테스트 쉽게 테스트할 수 있도록 embedded할 수 있다.
배너도 쉽게 만들 수 있다.
ANSI color banner.txt files
You can now use ANSI placeholders in your banner.txt
file to produce color output. Any${Ansi.}
, ${AnsiColor.}
, ${AnsiBackground.}
or ${AnsiStyle.}
properties will be expanded. For example:
${AnsiColor.BRIGHT_GREEN}My Application
${AnsiColor.BRIGHT_YELLOW}${application.formatted-version}${AnsiColor.DEFAULT}
CommandLineRunner 대신 ApplicationRunner로 바뀌었다.
Application arguments
You can now implement the ApplicationRunner
interface as an alternative toCommandLineRunner
. This works in the same way but provides arguments as aApplicationArguments
interface rather than a String[]
. You can also injectApplicationArguments
directly into any existing bean if you need to access the application arguments.
The ApplicationArguments
interface provides convenience methods for accessing "option" and "non-option" arguments. For example:
@Autowired
public MyBean(ApplicationArguments args) {
boolean debug = args.containsOption("debug");
List<String> files = args.getNonOptionArgs();
// if run with "--debug logfile.txt" debug=true, files=["logfile.txt"]
}
ObjectMappers 로 바인딩된 jackson 모듈만 사용한다.
Spring Boot 1.3 will only register Jackson Module beans withObjectMappers
that are created or configured with the auto-configuredJackson2ObjectMapperBuilder
'general java' 카테고리의 다른 글
[swift] enum 이슈 - Enum class does not have a value for 55 (0) | 2015.12.21 |
---|---|
[jenkins] exit 값 활용하기 (0) | 2015.12.02 |
[spring boot] undertow (0) | 2015.10.30 |
Java8 - parallelStream() cpu 개수 (0) | 2015.10.13 |
[spring mongodb] mongodb 색인 추가/삭제 및 jpa로 새로운 색인 생성하기 (2차 색인) (0) | 2015.10.08 |