Skip to main content
Version: Next

Dictionary Management

Explanation#

This document will introduce the use of dictionary management in the Apache ShenYu background management system. Dictionary management is primarily used to maintain and manage common data dictionaries.

Please refer to the deployment document, choose a way to start shenyu-admin. For example, local deployment. After startup, visit http://localhost:9095, the default username and password are: admin and 123456 .

The current usage scenario is in the pluginHandle, when the data type is selected as the dropdown:

In dictionary management, you can add dictionary types for other places:

  • DictionaryType: The field name used in the pluginHandle .
  • DictionaryCode: Identify dictionary data.
  • DictionaryName: The name of the handle field when adding plugins, selectors or rules.
  • DictionaryValue: The actual value of the dictionary data.
  • DictionaryDescribe: Description.
  • Sort: Dictionary data order.

e.g. degradeRuleGrade is one of fields of Sentinel's handle json. When it adds rules, it automatically looks up all the general dictionaries of type='degradeRuleGrade' in the shenyu_dict table as a select-box when you edit the General rules field.