Font size
WorksheetsCore Spring 5 - Test 2
Total questions: 50
Worksheet time: 3hrs 30mins
Metrics
Management
Monitoring
Auditing
Slf4j2
LogBack
Log4j2
TinyLog
Weblogic
Undertow
Jetty
Glassfish
YML file
Java based configuration file
XML file
Properties file
By using an annotation @ServerPort in Main class.
By creating a file named server.port in classpath.
application.properties
pom.xml
Application Metrics
Auditing
Application health monitoring
Management
@DataJpaTest
@DataTest
@JpaDataTest
@JpaTest
@EnableGlobalSecurity
@EnableGlobalMethodSecurity
@EnableMethodSecurity
UserService
UserServiceDetails
UserDetailsService
DelegatingProxy
FilterChainProxy
DelegatingFilterProxy
management.endpoints.enable=true
management.endpoints.web.include=*
management.endpoints.enable-by-default=true
management.endpoints.web.expose.include=*
Servlet Wrappers
Servlet Filters
Servlet Listeners
http://localhost:8080/endpoint/actuator
http://localhost:8080/actuator
http://localhost:8080/boot/actuator
http://localhost:8080/bootactuator
UserDetailsService
GrantedAuthority
UserDetails
Authentication
Repeatable reads
Read committed
Read uncommitted
Serializable
It provides set of managed dependencies and plugins like maven or gradle.
It reduces boiler plate code for developing applications
It allows easy customizations for the developer
It produces an executable jar which can be run using command like interface.
Spring Boot Starter
Spring Boot Actuator
Spring Boot Initializer
Spring Boot Devtools
Customize el environment or application context prior to the Spring Boot application has started up.
Locate autoconfiguration candidates in, for instance, your own starter module.
Register application event listeners regardless of how the spring boot application is created
Register a filter to limit the auto-configuration classes considered.
It is implemented using Spring AOP.
It follows ACID properties
It is not a cross cutting concern
FilterChain
SecurityFilterChain
FilterSecurityChain
Local Transactions
Internal Transactions
Confined Transactions
Spring Security
Spring Rest
Spring Boot
Spring Web
Read uncommitted
Read committed
Serializable
Repeatable reads
@PreFilter
@PostFilter
@PreAuthorize
@RolesAllowed
It helps in alerting for anamolous behaviour of an application
It helps in monitoring the stats of an application
It helps in gathering information from multiple applications in a single place
It allows visualization of monitoring data of an application
health and info
beans and info
metrics and mappings
env and health
@EnableAutoConfiguration
@EnableConfiguration
@Configuration
@AutoConfiguration
Global transactions
General transactions
Universal transactions
ORM
AOP
Transactions
OXM
Spring Security's Web infrastructure using Filters
Spring AOP proxies
Both A and B
@EnableTransaction
@Transactional
@Transaction
logging.level.root=WARN
logging.level.configure=WARN
logging.level.property=WARN
logging.level.base=WARN
UP
KNOWN
DOWN
OUT_OF_SERVICE
@PostAuthorize
@Authorize
@PreAuthorize
DAO layer
Service layer
Controller layer
@Import
@Primary
@Value
@PropertyResource
database password
database URL
driver class name
database username
self JAR
fat JAR
application JAR
dependency JAR
appsetting.properties
setting.properties
application.properties
app.properties
It is a cross cutting concern
It is used for securing Spring Web applications.
It provides support for both Authentication and Authorization
All of the above.
WARN
DEBUG
INFO
ERROR
UserDetailsService
Authentication
UserDetails
GrantedAuthority
POM.xml
spring.factories
A class annotated with @EnableAutoConfiguration
application.properties
spring.main.allow-bean-overriding=true
spring.allow-bean-definition-overriding=true
spring.main.bean-definition-overriding=true
spring.main.allow-bean-definition-overriding=true
JMX
HTTP
HTTPS
FTP
Serializable
Repeatable reads
Read committed
Read uncommitted
@PreAuthorize
@RolesAllowed
@Secured
@PreFilter
@TestWebMvc
@WebMvcTest
@WebTest
@MvcTest
AuthorityGranted
GrantedAuthority
AuthorityPrincipal
PrincipalAuthority
