This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
creationTimestamp: null | |
name: httpbin-proxy | |
data: | |
proxy.json: |- | |
{ | |
"target-url": "http://localhost:8000", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.validation.ConstraintValidator; | |
import javax.validation.ConstraintValidatorContext; | |
/** | |
* Created by: Fuxing | |
*/ | |
public class EnumValidator implements ConstraintValidator<ValidEnum, Enum> { | |
@Override | |
public boolean isValid(Enum value, ConstraintValidatorContext context) { | |
if (value == null) return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validate: validate the schema, makes no changes to the database. | |
update: update the schema. | |
create: creates the schema, destroying previous data. | |
create-drop: drop the schema at the end of the session. |