Skip to content

Commit 6c7447f

Browse files
committed
Ensure compatibility with AWS ElastiCache
1 parent e1ffcbf commit 6c7447f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/main/java/eu/openanalytics/containerproxy/ContainerProxyApplication.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.springframework.context.event.ContextRefreshedEvent;
3434
import org.springframework.context.event.EventListener;
3535
import org.springframework.core.env.Environment;
36+
import org.springframework.session.data.redis.config.ConfigureRedisAction;
3637
import org.springframework.web.filter.FormContentFilter;
3738
import org.springframework.web.filter.HiddenHttpMethodFilter;
3839

@@ -116,7 +117,16 @@ public FilterRegistrationBean<FormContentFilter> registration2(FormContentFilter
116117
*/
117118
@Bean
118119
public JSR353Module jsr353Module() {
119-
return new JSR353Module();
120+
return new JSR353Module();
121+
}
122+
123+
/**
124+
* Compatibility with AWS ElastiCache
125+
* @return
126+
*/
127+
@Bean
128+
public static ConfigureRedisAction configureRedisAction() {
129+
return ConfigureRedisAction.NO_OP;
120130
}
121131

122132
private static void setDefaultProperties(SpringApplication app ) {

0 commit comments

Comments
 (0)