Value '4320' is not valid duration

位置:首页>文章>详情   分类: 教程分享 > Java教程   阅读(1526)   2023-03-28 11:29:14
Value '4320' is not valid duration
Checks Spring boot application .properties configuration files. Highlights  unresolved and deprecated configuration keys and invalid values .Works only for Spring Boot 1.2 or higher。 



Spring Boot application.properties配置文件报错以上信息是在我配置缓存文件的时间遇到的
spring.resources.cache.cachecontrol.max-age=4320
改为:
spring.resources.cache.cachecontrol.max-age=4320s
即可解决

其中数字后面跟的
  • s代表秒
  • m代表分
  • h代表小时
  • d代表天

 
地址:https://www.leftso.com/article/486.html

相关阅读

Spring Boot 2.0 Redis整合,通过spring boot 2.0整合Redis作为spring缓存框架的实现。
Spring Boot 1.x升级到Spring Boot 2.0迁移指南
spring boot 2.0 security 5.0 整合,实现自定义表单登录。spring boot 2.0框架使用。
Spring Boot 2.0 有哪些新特性_Spring Boot 2.0新功能,在本文中,我们将探讨为Spring Boot 2.0计划的一些更改和功能。我们还会描述这些变化如何帮助我们提高...
Spring Boot 2.0,Spring框架的Spring Boot 中的Spring Boot Actuator变化讲解。并且了解如何在Spring Boot 2.0中使用Actuator...
spring boot 2.x设置静态资源缓存时间
Spring Boot 2.0 入门 logoback配置实战教程,俗话说好马配好鞍。Spring Boot 框架从各方面给我们带来了开发效率。日志自然也不会落下。本文将讲解与Spring Bo...
Spring Boot 2.0 绑定properties属性资源文件 Spring Boot 2.0 读取properties配置文件值 Spring Boot 2.0获取properties配...
Spring Boot 2.0 支持的Apache Camel 版本发布了_Apache Camel 2.22发布支持Spring Boot 2.0