samples/javaconfig/custom-cookie/src/main/java/sample/Config.java
@Bean
	public CookieSerializer cookieSerializer() {
		DefaultCookieSerializer serializer = new DefaultCookieSerializer();
		serializer.setCookieName("JSESSIONID"); // <1>
		serializer.setCookiePath("/"); // <2>
		serializer.setDomainNamePattern("^.+?\\.(\\w+\\.[a-z]+)$"); // <3>
		return serializer;
	}
@Bean
	public CookieSerializer cookieSerializer() {
		DefaultCookieSerializer serializer = new DefaultCookieSerializer();
		serializer.setCookieName("JSESSIONID"); // <1>
		serializer.setCookiePath("/"); // <2>
		serializer.setDomainNamePattern("^.+?\\.(\\w+\\.[a-z]+)$"); // <3>
		return serializer;
	}
@ Bean public CookieSerializer cookieSerializer ( ) { DefaultCookieSerializer serializer = new DefaultCookieSerializer ( ) ; serializer . setCookieName ( "JSESSIONID" ) ; // <1> serializer . setCookiePath ( "/" ) ; // <2> serializer . setDomainNamePattern ( "^.+?\\.(\\w+\\.[a-z]+)$" ) ; // <3> return serializer ; }
tag::cookie-serializer[]
tag :: cookie - serializer []