|
|
@ -1,6 +1,6 @@ |
|
|
|
package com.elink.esua.epdc.support.initbean; |
|
|
|
|
|
|
|
import com.elink.esua.epdc.modules.phrases.controller.ActPhraseController; |
|
|
|
import com.elink.esua.epdc.modules.phrases.service.ActPhraseService; |
|
|
|
import org.springframework.beans.factory.InitializingBean; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
@ -9,11 +9,11 @@ import org.springframework.stereotype.Component; |
|
|
|
public class InitRedisCache implements InitializingBean { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ActPhraseController actPhraseController; |
|
|
|
private ActPhraseService actPhraseService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void afterPropertiesSet() throws Exception{ |
|
|
|
//redis存储常用语
|
|
|
|
actPhraseController.insertPhraseListToRedis(); |
|
|
|
actPhraseService.insertPhraseListToRedis(); |
|
|
|
} |
|
|
|
} |
|
|
|