Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “We are loading the calendar.ldif
file from classpath
, and using it to populate the LDAP server.”
A block of code is set as follows:
//src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java @Bean public SecurityFilterChain filterChain(HttpSecurity http, PersistentTokenRepository persistentTokenRepository, RememberMeServices rememberMeServices) throws Exception { http.authorizeHttpRequests( authz -> authz .requestMatchers("/webjars/**").permitAll() … // Remember Me http.rememberMe(httpSecurityRememberMeConfigurer -> httpSecurityRememberMeConfigurer .key("jbcpCalendar") .rememberMeServices(rememberMeServices) .tokenRepository(persistentTokenRepository)); return http.build();}
The first line, //src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java
, indicates the location of the file to be modified.
Any command-line input or output is written as follows:
X-Content-Security-Policy: default-src 'self' X-WebKit-CSP: default-src 'self'
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Right-click on World and select Search.”
Tips or important notes
Appear like this.