Commit 9370da80 authored by hezhen's avatar hezhen

123

parent 6860ef7c
...@@ -20,7 +20,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer; ...@@ -20,7 +20,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer;
public class RedisConfiguration { public class RedisConfiguration {
@Bean @Bean
public RedisTemplate<String, Object> universalRedisTemplate(RedisConnectionFactory factory) { public RedisTemplate<String, Object> customRedisTemplate(RedisConnectionFactory factory) {
RedisTemplate redisTemplate = new RedisTemplate(); RedisTemplate redisTemplate = new RedisTemplate();
redisTemplate.setConnectionFactory(factory); redisTemplate.setConnectionFactory(factory);
RedisSerializer<String> stringSerializer = new StringRedisSerializer(); RedisSerializer<String> stringSerializer = new StringRedisSerializer();
......
...@@ -65,7 +65,7 @@ public class WebConfiguration implements WebMvcConfigurer { ...@@ -65,7 +65,7 @@ public class WebConfiguration implements WebMvcConfigurer {
private ArrayList<String> getWxIncludePathPatterns() { private ArrayList<String> getWxIncludePathPatterns() {
ArrayList<String> list = new ArrayList<>(); ArrayList<String> list = new ArrayList<>();
String[] urls = { String[] urls = {
"/user/**" "/info/**"
}; };
Collections.addAll(list, urls); Collections.addAll(list, urls);
return list; return list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment