|
|
|
@ -1,28 +1,35 @@
|
|
|
|
|
package com.hnac.hzims.bigmodel; |
|
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.mybatis.spring.annotation.MapperScan; |
|
|
|
|
import org.springblade.core.cloud.feign.EnableBladeFeign; |
|
|
|
|
import org.springblade.core.jwt.JwtUtil; |
|
|
|
|
import org.springblade.core.launch.BladeApplication; |
|
|
|
|
import org.springframework.boot.SpringApplication; |
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder; |
|
|
|
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
|
|
|
|
import org.springframework.cloud.client.SpringCloudApplication; |
|
|
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling; |
|
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
|
|
import static com.hnac.hzims.bigmodel.schedule.XxlJobHandlerConstant.HZIMS_BIGMODEL_ASK_KEY; |
|
|
|
|
|
|
|
|
|
@EnableBladeFeign(basePackages = {"org.springblade","com.hnac"}) |
|
|
|
|
@SpringCloudApplication |
|
|
|
|
@MapperScan("com.hnac.hzims.**.mapper.**") |
|
|
|
|
@ComponentScan(basePackages = {"com.hnac.hzims.bigmodel.*"}) |
|
|
|
|
@Resource |
|
|
|
|
@ComponentScan(basePackages = {"com.hnac.hzims.*"}) |
|
|
|
|
@Slf4j |
|
|
|
|
public class HzimsBigModelApplication extends SpringBootServletInitializer { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
BladeApplication.run(BigModelConstants.APP_NAME, HzimsBigModelApplication.class, args); |
|
|
|
|
RedisTemplate<String, Object> redisTemplate = JwtUtil.getRedisTemplate(); |
|
|
|
|
redisTemplate.delete(HZIMS_BIGMODEL_ASK_KEY); |
|
|
|
|
log.info("服务重启删除问题reids缓存:{}",HZIMS_BIGMODEL_ASK_KEY); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|