|  |  | 
 |  |  | import org.springframework.context.annotation.Configuration;
 | 
 |  |  | 
 | 
 |  |  | /**    
 | 
 |  |  |  * @Description:TODO(这里用一句话描述这个类的作用)    | 
 |  |  |  * @author: songww
 | 
 |  |  |  * @Description: 获取数据库配置    | 
 |  |  |  * @author: swwheihei
 | 
 |  |  |  * @date:   2020年5月6日 下午2:46:00     
 | 
 |  |  |  */
 | 
 |  |  | @Configuration("vmConfig")
 | 
 |  |  | 
 |  |  |    @Value("${spring.application.database:redis}")
 | 
 |  |  |     private String database;
 | 
 |  |  | 
 | 
 |  |  |    public String getDatabase() {
 | 
 |  |  |       return database;
 | 
 |  |  |    }
 | 
 |  |  | 
 | 
 |  |  |    public void setDatabase(String database) {
 | 
 |  |  |       this.database = database;
 | 
 |  |  |    }
 | 
 |  |  | 	 | 
 |  |  |     public String getDatabase() {
 | 
 |  |  |         return database;
 | 
 |  |  |     }
 | 
 |  |  | 
 | 
 |  |  |     public void setDatabase(String database) {
 | 
 |  |  |         this.database = database;
 | 
 |  |  |     }
 | 
 |  |  | }
 |