1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- package com .example .webflux ;
16+ package com .example .r2dbc ;
17+
18+ import reactor .core .publisher .Mono ;
1719
1820import org .springframework .boot .ApplicationRunner ;
1921import org .springframework .boot .SpringApplication ;
2426import org .springframework .r2dbc .core .DatabaseClient ;
2527import org .springframework .web .reactive .function .server .RouterFunction ;
2628import org .springframework .web .reactive .function .server .ServerResponse ;
27- import reactor .core .publisher .Mono ;
2829
29- import static org .springframework .web .reactive .function .server .RouterFunctions .* ;
30- import static org .springframework .web .reactive .function .server .ServerResponse .* ;
30+ import static org .springframework .web .reactive .function .server .RouterFunctions .route ;
31+ import static org .springframework .web .reactive .function .server .ServerResponse .ok ;
3132
3233@ SpringBootApplication
3334@ EnableR2dbcAuditing (auditorAwareRef = "fixedAuditor" )
34- public class WebfluxApplication {
35+ public class R2DBCApplication {
3536
3637 @ Bean
3738 RouterFunction <ServerResponse > routes (ReservationRepository reservationRepository ) {
@@ -51,6 +52,6 @@ ReactiveAuditorAware<String> fixedAuditor() {
5152 }
5253
5354 public static void main (String [] args ) {
54- SpringApplication .run (WebfluxApplication .class , args );
55+ SpringApplication .run (R2DBCApplication .class , args );
5556 }
5657}
0 commit comments