报告 Micronaut Cache 注解,其中 parameters
属性的值包含未定义方法参数的名称。
支持以下注解:
io.micronaut.cache.annotation.Cacheable
io.micronaut.cache.annotation.CachePut
io.micronaut.cache.annotation.CacheInvalidate
示例:
@CachePut(parameters = "myParameter") // 错误:无法解析符号“myParameter”
public String cachedMethod(String name_is_not_equal_to_myParameter) {
return "...";
}