|
@ -18,12 +18,14 @@ |
|
|
package com.elink.esua.epdc.service; |
|
|
package com.elink.esua.epdc.service; |
|
|
|
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.exception.RenException; |
|
|
import com.elink.esua.epdc.commons.tools.exception.RenException; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.redis.RedisChannels; |
|
|
import com.elink.esua.epdc.utils.WxMaServiceUtils; |
|
|
import com.elink.esua.epdc.utils.WxMaServiceUtils; |
|
|
import me.chanjar.weixin.common.error.WxErrorException; |
|
|
import me.chanjar.weixin.common.error.WxErrorException; |
|
|
import org.junit.Test; |
|
|
import org.junit.Test; |
|
|
import org.junit.runner.RunWith; |
|
|
import org.junit.runner.RunWith; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.boot.test.context.SpringBootTest; |
|
|
import org.springframework.boot.test.context.SpringBootTest; |
|
|
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
import org.springframework.test.context.junit4.SpringRunner; |
|
|
import org.springframework.test.context.junit4.SpringRunner; |
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
import java.io.File; |
|
@ -76,4 +78,13 @@ public class DynamicDataSourceTest { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private RedisTemplate<String, Object> redisTemplate; |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
public void test3() { |
|
|
|
|
|
String json = "{'postId':'666','carNum':'123'}"; |
|
|
|
|
|
redisTemplate.convertAndSend(RedisChannels.COMPLETE_INFO_BY_SENTRY_POST, json); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|