import lombok.Data; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; @Data @Document public class Counter { @Id String id; String counter; public Counter(String counter) { this.counter = counter; } } 16 changes: 16 additions & 0 ...
compileOnly('org.projectlombok:lombok') implementation('org.springframework.boot:spring-boot-starter-data-mongodb-reactive') implementation('org.springframework.boot:spring-boot-starter-thymeleaf') implementation('org.springframework.boot:spring-boot-starter-webflux') testImplementation('org.springframework...