|
@@ -14,7 +14,6 @@ import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
|
|
|
import org.springframework.data.redis.serializer.StringRedisSerializer;
|
|
|
-import org.hibernate.dialect.MySQL5InnoDBDialect;
|
|
|
|
|
|
/**
|
|
|
* 类名:PersistConfiguration <br />
|
|
@@ -49,16 +48,4 @@ public class PersistConfiguration implements EnvironmentAware {
|
|
|
public void setEnvironment(Environment environment) {
|
|
|
this.environment = environment;
|
|
|
}
|
|
|
-
|
|
|
- public static class MySQL5DialectUTF8 extends MySQL5InnoDBDialect{
|
|
|
- @Override
|
|
|
- public String getTableTypeString() {
|
|
|
- return " ENGINE=InnoDB DEFAULT CHARSET=utf8";
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @Bean(name = "MySQL5InnoDBDialect")
|
|
|
- public MySQL5DialectUTF8 mySQL5DialectUTF8() {
|
|
|
- return new MySQL5DialectUTF8();
|
|
|
- }
|
|
|
}
|