Compare commits
6 Commits
cceabb0c8d
...
v0.0.7
| Author | SHA1 | Date | |
|---|---|---|---|
| 42dee2e4ad | |||
|
|
d77cf10b1b | ||
| 66eb6108cd | |||
|
|
3a343724a8 | ||
| 82f950e71d | |||
|
|
83b1265c0a |
6
pom.xml
6
pom.xml
@@ -13,16 +13,16 @@
|
||||
|
||||
<groupId>com.imyeyu.spring</groupId>
|
||||
<artifactId>timi-spring</artifactId>
|
||||
<version>0.0.5</version>
|
||||
<version>0.0.7</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
<java.version>21</java.version>
|
||||
<maven.test.skip>true</maven.test.skip>
|
||||
<springboot.version>3.5.11</springboot.version>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.test.skip>true</maven.test.skip>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
@@ -141,7 +141,7 @@
|
||||
<dependency>
|
||||
<groupId>com.imyeyu.io</groupId>
|
||||
<artifactId>timi-io</artifactId>
|
||||
<version>0.0.2</version>
|
||||
<version>0.0.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.imyeyu.spring.config;
|
||||
|
||||
import com.imyeyu.spring.bean.RedisConfigParams;
|
||||
import com.imyeyu.spring.util.Redis;
|
||||
import io.lettuce.core.api.StatefulConnection;
|
||||
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
|
||||
import org.springframework.cache.annotation.CachingConfigurer;
|
||||
import org.springframework.cache.interceptor.KeyGenerator;
|
||||
@@ -39,7 +40,7 @@ public abstract class AbstractRedisConfig implements CachingConfigurer {
|
||||
* 连接池配置
|
||||
* <p>参考:
|
||||
* <pre>
|
||||
* GenericObjectPoolConfig<?> config = new GenericObjectPoolConfig<>();
|
||||
* GenericObjectPoolConfig<StatefulConnection<?, ?>> config = new GenericObjectPoolConfig<>();
|
||||
* config.setMaxTotal(config.getMaxActive());
|
||||
* config.setMinIdle(config.getMinIdle());
|
||||
* config.setMaxIdle(config.getMaxIdle());
|
||||
@@ -48,7 +49,7 @@ public abstract class AbstractRedisConfig implements CachingConfigurer {
|
||||
*
|
||||
* @return GenericObjectPoolConfig
|
||||
*/
|
||||
public abstract GenericObjectPoolConfig<?> getPoolConfig();
|
||||
public abstract GenericObjectPoolConfig<StatefulConnection<?, ?>> getPoolConfig();
|
||||
|
||||
/**
|
||||
* Redis key 生成策略
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
package com.imyeyu.spring.bean;
|
||||
package com.imyeyu.spring.entity;
|
||||
|
||||
import com.imyeyu.java.bean.Language;
|
||||
import com.imyeyu.java.ref.Ref;
|
||||
import com.imyeyu.spring.annotation.table.AutoUUID;
|
||||
import com.imyeyu.spring.annotation.table.Id;
|
||||
import com.imyeyu.spring.entity.Creatable;
|
||||
import com.imyeyu.spring.entity.Deletable;
|
||||
import com.imyeyu.spring.entity.IDEntity;
|
||||
import com.imyeyu.spring.entity.Updatable;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@@ -19,7 +15,7 @@ import lombok.EqualsAndHashCode;
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Multilingual extends Language implements IDEntity<String>, Creatable, Updatable, Deletable {
|
||||
public class Multilingual extends Language implements IDEntity<String>, Creatable, Updatable, Deletable, Destroyable {
|
||||
|
||||
/** 唯一标识 */
|
||||
@Id
|
||||
Reference in New Issue
Block a user