Friday, 11 October 2019
Spring Boot Security Logout
How to manage logout in Spring boot?
Ch-9.24_Log out in Spring-boot-Official-Doc
spring-security-logout
It may need to know the know-how about how to manage Http-Session in Spring boot.
spring-security-session
Wednesday, 9 October 2019
Tuesday, 8 October 2019
Handling Security Exceptions in Spring Boot
Actually, handling exceptions thrown in the security is different from handling ones thrown from the rest APIs, for they happens in the filters before reaching the Servlet dispatcher.
Hence, we cannot handle security-relevant exceptions in @ControllerAdvice and @ExceptionHanlder, it needs a different way
Encoding Issue Running Gradle Test
Gradle setup: if having a problem at the command line
It may due to missing encoding set in the Gradle property.
We may setup the encoding convention to force the JVM using a specific encoding strategy.
Setup Gradle Properties
JVM Configuration Attributes
Intellij setup: if having a problem at the IDE
Intellij GOTO 'Help' Tab, Click 'Edit Custom VM Option'
adding
It may due to missing encoding set in the Gradle property.
We may setup the encoding convention to force the JVM using a specific encoding strategy.
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m
-XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Setup Gradle Properties
JVM Configuration Attributes
Intellij setup: if having a problem at the IDE
Intellij GOTO 'Help' Tab, Click 'Edit Custom VM Option'
adding
-Dfile.encoding=UTF8
Sunday, 6 October 2019
Wednesday, 2 October 2019
Spring Session
HTTP is a stateless protocol, meaning that all requests and responses are independent.
Http session is a way to keep states at a server-side. A cookie is another way to keep states in the client-side.
Spring session is a way to manage a cluster of Http sessions; across sessions, including their persistence.
Spring Security Session
Spring Boot Session
Tuesday, 1 October 2019
Subscribe to:
Posts (Atom)
Can Jackson Deserialize Java Time ZonedDateTime
Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...
-
The strictfp keyword is used to force the precision of floating point calculations (float or double) in Java conform to IEEE’s 754 standard...
-
In construction. Spring test annotations: @SpringBooTest @DataJpaTest @TestPropertySource @ActiveProfiles @Sql @SpringBootTest It is used f...
-
Testing Controllers @Runwith(SrpingRunner.class) Unit test @Runwith(SrpingRunner.class) @WebMvcTest(SpecificController.class) Integration te...