mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 04:22:08 +08:00
bug修复+代码调整+日志优化
This commit is contained in:
@@ -123,7 +123,7 @@ public class MvcAutoConfiguration implements WebMvcConfigurer {
|
||||
@Bean(name = "jaxb2Marshaller")
|
||||
Jaxb2Marshaller jaxb2Marshaller() {
|
||||
Jaxb2Marshaller jaxb2Marshaller = new Jaxb2Marshaller();
|
||||
jaxb2Marshaller.setClassesToBeBound(org.dromara.maxkey.entity.xml.UserInfoXML.class);;
|
||||
jaxb2Marshaller.setClassesToBeBound(org.dromara.maxkey.entity.xml.UserInfoXML.class);
|
||||
return jaxb2Marshaller;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
package org.dromara.maxkey.autoconfigure;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
import org.dromara.maxkey.persistence.redis.RedisConnectionFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -70,7 +72,7 @@ public class RedisAutoConfiguration {
|
||||
poolConfig.setMaxIdle(maxIdle);
|
||||
poolConfig.setMinIdle(minIdle);
|
||||
poolConfig.setMaxTotal(maxActive);
|
||||
poolConfig.setMaxWaitMillis(maxWait);
|
||||
poolConfig.setMaxWait(Duration.ofMillis(maxWait));
|
||||
|
||||
factory.setPoolConfig(poolConfig);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user