Files
getting-started/spring-boot/cors/configuring-cors-with-spring/LibraryWebfluxApplication
ranjanih 52ce0d921f Configure cors with Spring (#209)
* Initial example

* Spring Webflux application

* Webflux filter

* Working samples

* Spring Web & Webflux initializr projects

* README updates

Co-authored-by: ranjani2412 <53815317+ranjani2412@users.noreply.github.com>
2022-09-01 06:46:01 +10:00
..
2022-09-01 06:46:01 +10:00
2022-09-01 06:46:01 +10:00
2022-09-01 06:46:01 +10:00
2022-09-01 06:46:01 +10:00
2022-09-01 06:46:01 +10:00

A simple Spring Boot library application

This application manages a database of books and authors

Details

  • This application uses the default reactive r2dbc schema to maintain book and authors.
  • It uses Spring Webflux to create REST endpoints
  • It uses Maven and Java11 to build and run.

How to run

  • Clone this project
  • Use maven command: mvn clean verify spring-boot:run
  • The application should run at http://localhost:8092
  • Uses Basic auth for authentication.

Sample request JSON body

POST Sample

{
"bookName": "The Da Vinci Code",
"publisher": "Corgie Adult",
"publicationYear": "2009",
"authorName": "Dan Brown"
}