<dependencies> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-core</artifactId> <version>14.6.6</version> </dependency> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-dev-server</artifactId> <version>14.6.6</version> <scope>provided</scope> </dependency> </dependencies> public class MyCustomRule implements VaadinDevModeDetector.Rule { @Override public String getDescription() { return "Check for unfilled fields in form"; } @Override public boolean detect() { // Implement your custom detection logic here // Return true if the rule is violated, false otherwise } } public class MyApplication { public static void main(String[] args) { VaadinDevModeDetector.addRule(new MyCustomRule()); SpringApplication.run(MyApplication.class, args); } }


上一篇:
下一篇:
切换中文