See gh-965
This commit is contained in:
Johnny Lim
2018-01-08 22:45:17 +09:00
committed by Vedran Pavic
parent 1edce117aa
commit 79ccbe7066
7 changed files with 11 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ public interface FindByIndexNameSessionRepository<S extends Session>
* {@link FindByIndexNameSessionRepository#PRINCIPAL_NAME_INDEX_NAME} and the value of
* the specified principal name.
*
* @param indexName the name if the index (i.e.
* @param indexName the name of the index (i.e.
* {@link FindByIndexNameSessionRepository#PRINCIPAL_NAME_INDEX_NAME})
* @param indexValue the value of the index to search for.
* @return a Map (never null) of the session id to the {@link Session} of all sessions

View File

@@ -25,7 +25,7 @@ import org.springframework.context.annotation.Import;
/**
* Add this annotation to a {@code @Configuration} class to configure a {@code WebSessionManager} for a WebFlux
* application. This annotation assumes a {@code ReactiveSessionRepository} is defined somewhere in the application
* context. If not, it will fail with a clear error messages. For example:
* context. If not, it will fail with a clear error message. For example:
*
* <pre>
* <code>

View File

@@ -47,7 +47,7 @@ public class SpringWebSessionConfiguration {
/**
* Configure a {@link WebSessionManager} using a provided {@link ReactiveSessionRepository}.
*
* @param repository - a bean that implements {@link ReactiveSessionRepository}.
* @param repository a bean that implements {@link ReactiveSessionRepository}.
* @return a configured {@link WebSessionManager} registered with a preconfigured name.
*/
@Bean(WebHttpHandlerBuilder.WEB_SESSION_MANAGER_BEAN_NAME)

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.session;
package org.springframework.session.config.annotation.web.server;
import java.util.HashMap;
@@ -24,7 +24,8 @@ import org.junit.Test;
import org.springframework.beans.factory.UnsatisfiedDependencyException;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.session.config.annotation.web.server.EnableSpringWebSession;
import org.springframework.session.ReactiveMapSessionRepository;
import org.springframework.session.ReactiveSessionRepository;
import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
import org.springframework.web.server.session.CookieWebSessionIdResolver;
import org.springframework.web.server.session.DefaultWebSessionManager;

View File

@@ -64,7 +64,7 @@ public class ReactiveRedisOperationsSessionRepository implements
static final String MAX_INACTIVE_INTERVAL_KEY = "maxInactiveInterval";
/**
* The prefix of the key for used for session attributes. The suffix is the name of
* The prefix of the key used for session attributes. The suffix is the name of
* the session attribute. For example, if the session contained an attribute named
* attributeName, then there would be an entry in the hash named
* sessionAttr:attributeName that mapped to its value.

View File

@@ -60,7 +60,7 @@ import org.springframework.util.Assert;
* A typical example of how to create a new instance can be seen below:
*
* <pre>
* RedisTemplate&lt;Object, Object&gt; redisTemplate = new RedisTemplate();
* RedisTemplate&lt;Object, Object&gt; redisTemplate = new RedisTemplate&lt;&gt;();
*
* // ... configure redisTemplate ...
*
@@ -277,7 +277,7 @@ public class RedisOperationsSessionRepository implements
static final String LAST_ACCESSED_ATTR = "lastAccessedTime";
/**
* The prefix of the key for used for session attributes. The suffix is the name of
* The prefix of the key used for session attributes. The suffix is the name of
* the session attribute. For example, if the session contained an attribute named
* attributeName, then there would be an entry in the hash named
* sessionAttr:attributeName that mapped to its value.

View File

@@ -195,7 +195,7 @@ public class HazelcastHttpSessionConfigurationTests {
}
@Test
public void namedDataSourceConfiguration() {
public void namedHazelcastInstanceConfiguration() {
registerAndRefresh(NamedHazelcastInstanceConfiguration.class);
HazelcastSessionRepository repository = this.context
@@ -209,7 +209,7 @@ public class HazelcastHttpSessionConfigurationTests {
}
@Test
public void multipleDataSourceConfiguration() {
public void multipleHazelcastInstanceConfiguration() {
this.thrown.expect(BeanCreationException.class);
this.thrown.expectMessage("expected single matching bean but found 2");