Commit 8f619ff4 authored by yanzg's avatar yanzg

默认日期格式的支持

parent 5b03db9e
......@@ -24,6 +24,7 @@ import com.yanzuoguang.util.log.Log;
import io.swagger.annotations.ApiOperation;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.core.ChannelAwareMessageListener;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
......@@ -37,7 +38,7 @@ import java.util.List;
* @author 颜佐光
*/
@Component
public class MqServiceImpl implements MqService {
public class MqServiceImpl implements MqService, InitializingBean {
@Autowired
private QueueService queueService;
......@@ -349,4 +350,18 @@ public class MqServiceImpl implements MqService {
}
}
/**
* Invoked by a BeanFactory after it has set all bean properties supplied
* (and satisfied BeanFactoryAware and ApplicationContextAware).
* <p>This method allows the bean instance to perform initialization only
* possible when all bean properties have been set and to throw an
* exception in the event of misconfiguration.
*
* @throws Exception in the event of misconfiguration (such
* as failure to set an essential property) or if initialization fails.
*/
@Override
public void afterPropertiesSet() throws Exception {
this.init();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment