Spring Boot Reference Guide
2.1.0.RC1 Spring Boot v
CORS Support .................................................................................................. 96
28.2. The “Spring WebFlux Framework” ..................................................................... 96
Spring WebFlux Auto-configuration .................................................................... 97
HTTP Codecs with HttpMessageReaders and HttpMessageWriters ..................... 98
Static Content ................................................................................................... 98
Template Engines ............................................................................................. 99
Error Handling .................................................................................................. 99
Custom Error Pages ............................................................................... 100
Web Filters ..................................................................................................... 100
28.3. JAX-RS and Jersey ........................................................................................ 100
28.4. Embedded Servlet Container Support .............................................................. 101
Servlets, Filters, and listeners .......................................................................... 102
Registering Servlets, Filters, and Listeners as Spring Beans ...................... 102
Servlet Context Initialization ............................................................................. 102
Scanning for Servlets, Filters, and listeners .............................................. 103
The ServletWebServerApplicationContext ......................................................... 103
Customizing Embedded Servlet Containers ...................................................... 103
Programmatic Customization ................................................................... 104
Customizing ConfigurableServletWebServerFactory Directly ...................... 104
JSP Limitations ............................................................................................... 105
28.5. Embedded Reactive Server Support ................................................................ 105
28.6. Reactive Server Resources Configuration ........................................................ 105
29. Security .................................................................................................................... 106
29.1. MVC Security ................................................................................................. 106
29.2. WebFlux Security ........................................................................................... 107
29.3. OAuth2 .......................................................................................................... 107
Client .............................................................................................................. 107
OAuth2 client registration for common providers ....................................... 108
Resource Server ............................................................................................. 109
Authorization Server ........................................................................................ 109
29.4. Actuator Security ............................................................................................ 109
Cross Site Request Forgery Protection ............................................................ 109
30. Working with SQL Databases .................................................................................... 111
30.1. Configure a DataSource ................................................................................. 111
Embedded Database Support .......................................................................... 111
Connection to a Production Database .............................................................. 112
Connection to a JNDI DataSource ................................................................... 113
30.2. Using JdbcTemplate ....................................................................................... 113
30.3. JPA and Spring Data JPA .............................................................................. 114
Entity Classes ................................................................................................. 114
Spring Data JPA Repositories ......................................................................... 115
Creating and Dropping JPA Databases ............................................................ 116
Open EntityManager in View ........................................................................... 116
30.4. Spring Data JDBC .......................................................................................... 116
30.5. Using H2’s Web Console ................................................................................ 117
Changing the H2 Console’s Path ..................................................................... 117
30.6. Using jOOQ ................................................................................................... 117
Code Generation ............................................................................................. 117
Using DSLContext ........................................................................................... 118
jOOQ SQL Dialect .......................................................................................... 118