<dependency> <groupId>org.n52.shetland</groupId> <artifactId>faroe-annotations</artifactId> <version>1.0.0</version> </dependency> groovy implementation 'org.n52.shetland:faroe-annotations:1.0.0' import org.n52.shetland.faroe.annotation.Coordinate; import org.n52.shetland.faroe.annotation.Geometry; public class GeoData { @Coordinate("latitude") private double latitude; @Coordinate("longitude") private double longitude; @Geometry("polygon") private String polygon; public GeoData(double latitude, double longitude, String polygon) { this.latitude = latitude; this.longitude = longitude; this.polygon = polygon; } // Getters and setters // ... } properties faroe.annotations.coordinate.validation.enabled=true faroe.annotations.boundingbox.validation.enabled=true faroe.annotations.geometry.validation.enabled=true


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