Code of the part where server.servlet.session.timeout is set in spring.session.timeout in spring-boot2 system

pom.xml


	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.0.1.RELEASE</version>
	</parent>

If you go through various things, `spring.session.timeout``` will have the value of `server.servlet.session.timeout (`` server.session.timeout in the 1st system) It says that it will be set. How is this done? I thought, so I read the code of the relevant part.

SessionProperties


package org.springframework.boot.autoconfigure.session;

@ConfigurationProperties(prefix = "spring.session")
public class SessionProperties {
	//(Omitted)
	public SessionProperties(ObjectProvider<ServerProperties> serverProperties) {
		ServerProperties properties = serverProperties.getIfUnique();
		Session session = (properties == null ? null
				: properties.getServlet().getSession());
		this.timeout = (session == null ? null : session.getTimeout());
	}

Nothing happens, I set the value of `ServerPropertie.getServlet (). GetSession (). GetTimeout ()` to `` `timeoutin the constructor of SessionProperties``` It was just.

Recommended Posts

Code of the part where server.servlet.session.timeout is set in spring.session.timeout in spring-boot2 system
Correspondence of the part where Authentication # getDetails is done in the unit test of spring-security
The milliseconds to set in /lib/calendars.properties of Java jre is UTC
[Reference example] Copyright is described in the comment of the source code.
Where is the home directory location of "Ubuntu"? (Solved in the comment section)
[Order method] Set the order of data in Rails
[Java] Where is the implementation class of annotation that exists in Bean Validation?
In Time.strptime,% j (total date of the year) is
Set the maximum number of characters in UITextField in RxSwift
Differences in code when using the length system in Java
Define data source in code in spring-boot instead of property
Determine that the value is a multiple of 〇 in Ruby
What is the representation of domain knowledge in the [DDD] model?
Set the time zone in the JVM of your Azure application
[Rails] Where to be careful in the description of validation
[Android] Try to display the effect on the touched part of the screen, which is common in games.
Until the code is executed
Examine the system information of AWS Lambda operating environment in Java
Like function The part that is stuck in making it asynchronous
Fix the file name of war to the one set in Maven
What is @Override or @SuppressWarnings ("SleepWhileInLoop") in front of the function? ?? ??
[Java] Appropriate introduction by the people of Tempa Java Part 0 (Code rules)