| | |
| | | String tempExcludes = filterConfig.getInitParameter("excludes");
|
| | | if (StringUtils.isNotEmpty(tempExcludes))
|
| | | {
|
| | | String[] url = tempExcludes.split(",");
|
| | | for (int i = 0; url != null && i < url.length; i++)
|
| | | String[] urls = tempExcludes.split(",");
|
| | | for (String url : urls)
|
| | | {
|
| | | excludes.add(url[i]);
|
| | | excludes.add(url);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | */
|
| | | public static String getDictLabel(String dictType, String dictValue)
|
| | | {
|
| | | if (StringUtils.isEmpty(dictValue))
|
| | | {
|
| | | return StringUtils.EMPTY;
|
| | | }
|
| | | return getDictLabel(dictType, dictValue, SEPARATOR);
|
| | | }
|
| | |
|
| | |
| | | */
|
| | | public static String getDictValue(String dictType, String dictLabel)
|
| | | {
|
| | | if (StringUtils.isEmpty(dictLabel))
|
| | | {
|
| | | return StringUtils.EMPTY;
|
| | | }
|
| | | return getDictValue(dictType, dictLabel, SEPARATOR);
|
| | | }
|
| | |
|
| | |
| | | import java.util.Map;
|
| | | import java.util.Properties;
|
| | | import java.util.Set;
|
| | | import java.util.TreeSet;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.data.redis.core.RedisCallback;
|
| | | import org.springframework.data.redis.core.RedisTemplate;
|
| | |
| | | public AjaxResult getCacheKeys(@PathVariable String cacheName)
|
| | | {
|
| | | Set<String> cacheKeys = redisTemplate.keys(cacheName + "*");
|
| | | return AjaxResult.success(cacheKeys);
|
| | | return AjaxResult.success(new TreeSet<>(cacheKeys));
|
| | | }
|
| | |
|
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
|