AlexFalappa / nb-springboot

NetBeans IDE plugin supporting programming with Spring Boot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support configuration properties of type java.time.Period

AlexFalappa opened this issue · comments

Spring Boot 2.3.x introduced support for java.time.Period properties similarly to java.time.Duration as documented in the reference.

Currently use of the simple syntax (e.g. 1m for 1 month) is higlighted as an error. Use of the ISO syntax (e.g. P1M) as documented in the javadoc for Period is not supported either.

Like with duration a completion list of suffixes after the integer value could be provided. Valid suffixes are listed in the reference documentation.

Period support should be ideally allowed only if the project uses Spring Boot 2.3.x and not if using earlier versions.

Period support implemented in 903d3d9 without checking the version of Spring Boot used in the project.