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 Details

    • MysqlChatMemoryAutoConfiguration

      public MysqlChatMemoryAutoConfiguration()
  • Method Details

    • mysqlChatMemoryRepository

      @Bean @Qualifier("mysqlChatMemoryRepository") @ConditionalOnMissingBean(name="mysqlChatMemoryRepository") MysqlChatMemoryRepository mysqlChatMemoryRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)