Skip to content

Small example showing that Spring Boot doesn't support Duration properties injection via @value

Notifications You must be signed in to change notification settings

detouched/spring-boot-duration-via-value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains two Spring Boot 2 apps as an example of an issue with properties injection.

Recently introduced support for parsing human-readable format of java.time.Duration properties is incomplete. It works for properties injected into a structured object through @ConfigurationProperties, but it does not work for properties injected through @Value.

There are two Spring Boot 2 applications in this repository, each of which defines just one bean that needs a Duration property to be injected from application.yml:

About

Small example showing that Spring Boot doesn't support Duration properties injection via @value

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages