Package com.bytedesk.ai.alibaba.memory
Class MysqlChatMemoryProperties
java.lang.Object
com.bytedesk.ai.alibaba.memory.MysqlChatMemoryProperties
@ConfigurationProperties("spring.ai.chat.memory.repository.jdbc.mysql")
public class MysqlChatMemoryProperties
extends Object
Configuration properties for MySQL chat memory repository.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private String
Fully qualified name of the JDBC driver class.private boolean
Whether to enable custom datasource configuration.private boolean
private String
JDBC URL of the database.private String
Database password.private String
Database username. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setDriverClassName
(String driverClassName) void
setEnabled
(boolean enabled) void
setInitializeSchema
(boolean initializeSchema) void
setJdbcUrl
(String jdbcUrl) void
setPassword
(String password) void
setUsername
(String username)
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
initializeSchema
private boolean initializeSchema -
jdbcUrl
JDBC URL of the database. -
username
Database username. -
password
Database password. -
driverClassName
Fully qualified name of the JDBC driver class. -
enabled
private boolean enabledWhether to enable custom datasource configuration.
-
-
Constructor Details
-
MysqlChatMemoryProperties
public MysqlChatMemoryProperties()
-
-
Method Details
-
isInitializeSchema
public boolean isInitializeSchema() -
setInitializeSchema
public void setInitializeSchema(boolean initializeSchema) -
getJdbcUrl
-
setJdbcUrl
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getDriverClassName
-
setDriverClassName
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-