Click here to Skip to main content
15,899,026 members
Articles / Programming Languages / Java

Java String Property Values that Start with a Single Number are Truncated

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
29 Apr 2021CPOL2 min read 3.6K   12   3  
A Java String property value starting with a single number (e.g., a CRON schedule like "0 30 */1 * * ?") is truncated to just the first number.
Java will truncate any property value string that starts with a number followed by a space. This tip has a small project with a Spring Scheduled task that uses a CRON schedule to demonstrate both the problem and the solution.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Loblaw Companies Limited
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions