Package com.bytedesk.ai.alibaba.memory
Class MysqlChatMemoryAutoConfiguration
java.lang.Object
com.bytedesk.ai.alibaba.memory.MysqlChatMemoryAutoConfiguration
@AutoConfiguration(after=org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration.class)
@ConditionalOnClass({MysqlChatMemoryRepository.class,jakarta.activation.DataSource.class,org.springframework.jdbc.core.JdbcTemplate.class})
@ConditionalOnProperty(prefix="spring.ai.memory.mysql",
name="enabled",
havingValue="true",
matchIfMissing=false)
@EnableConfigurationProperties(MysqlChatMemoryProperties.class)
public class MysqlChatMemoryAutoConfiguration
extends Object
Auto-configuration for MySQL chat memory repository.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) MysqlChatMemoryRepository
mysqlChatMemoryRepository
(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
Constructor Details
-
MysqlChatMemoryAutoConfiguration
public MysqlChatMemoryAutoConfiguration()
-
-
Method Details
-
mysqlChatMemoryRepository
@Bean @Qualifier("mysqlChatMemoryRepository") @ConditionalOnMissingBean(name="mysqlChatMemoryRepository") MysqlChatMemoryRepository mysqlChatMemoryRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-