mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	增加 Spring Cache 框架
This commit is contained in:
		@@ -44,14 +44,12 @@ spring:
 | 
			
		||||
      datasource:
 | 
			
		||||
        master:
 | 
			
		||||
          name: ruoyi-vue-pro
 | 
			
		||||
#          name: ruoyi-vue-pro-flowable
 | 
			
		||||
          url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
 | 
			
		||||
          driver-class-name: com.mysql.jdbc.Driver
 | 
			
		||||
          username: root
 | 
			
		||||
          password: 123456
 | 
			
		||||
        slave: # 模拟从库,可根据自己需要修改
 | 
			
		||||
          name: ruoyi-vue-pro
 | 
			
		||||
#          name: ruoyi-vue-pro-flowable
 | 
			
		||||
          url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
 | 
			
		||||
          driver-class-name: com.mysql.jdbc.Driver
 | 
			
		||||
          username: root
 | 
			
		||||
 
 | 
			
		||||
@@ -20,6 +20,10 @@ spring:
 | 
			
		||||
      write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
 | 
			
		||||
      fail-on-empty-beans: false # 允许序列化无属性的 Bean
 | 
			
		||||
 | 
			
		||||
  # Cache 配置项
 | 
			
		||||
  cache:
 | 
			
		||||
    type: REDIS
 | 
			
		||||
 | 
			
		||||
  # 工作流 Activiti 配置
 | 
			
		||||
  activiti:
 | 
			
		||||
    # 1. false: 默认值,activiti启动时,对比数据库表中保存的版本,如果不匹配。将抛出异常
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user