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
version: "3.1" | |
services: | |
mongo: | |
image: mongo | |
restart: always | |
ports: | |
- "27017:27017" | |
volumes: |
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
version: "3.5" | |
services: | |
postgres: | |
container_name: postgres | |
image: postgres:13.2 | |
restart: always | |
environment: | |
- POSTGRES_USER=admin |
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
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-webflux</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-data-r2dbc</artifactId> | |
</dependency> |
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
@Table | |
@Getter | |
@Setter | |
@Accessors(chain = true) | |
@NoArgsConstructor | |
public class Item { | |
@Id | |
private Long id; |
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
@Table | |
@Getter | |
@Setter | |
@Accessors(chain = true) | |
public class Person { | |
@Id | |
private Long id; | |
@Version |
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
@Table | |
@Getter | |
@Setter | |
@Accessors(chain = true) | |
public class Tag { | |
@Id | |
private Long id; | |
@Version |
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
@SpringBootApplication | |
@EnableR2dbcAuditing | |
public class TodoListApplication { | |
public static void main(String[] args) { | |
SpringApplication.run(TodoListApplication.class, args); | |
} | |
} |
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
databaseChangeLog: | |
... | |
- changeSet: | |
id: create-item-table | |
author: ajacquot | |
changes: | |
- createTable: | |
schema: public |
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
# Liquibase (schema update) | |
spring.liquibase.change-log=classpath:/db/db.changelog.yaml | |
spring.liquibase.url=jdbc:postgresql://127.0.0.1:5432/todolist | |
spring.liquibase.user=admin | |
spring.liquibase.password=password |
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
@Repository | |
public interface ItemRepository extends ReactiveSortingRepository<Item, Long> { | |
} |
OlderNewer