Resource增加required属性

This commit is contained in:
Redkale
2022-11-25 17:29:31 +08:00
parent 53f7e5d337
commit d6b626fd47
2 changed files with 37 additions and 3 deletions

View File

@@ -31,6 +31,13 @@ public @interface Resource {
// */
// APPLICATION
// }
//
/**
* 是否必须存在
*
* @return boolean
*/
public boolean required() default false;
/**
* 资源名称