fix: fix component scan error

This commit is contained in:
lhc
2023-12-06 14:23:49 +08:00
parent 50d4496a70
commit 805cf9e6fd
18 changed files with 26 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
package com.hcframe.es;
package com.taixingyiji.es;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -16,7 +16,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableCaching
//@EnableDiscoveryClient
//@EnableFeignClients
@ComponentScan(basePackages = {"com.hcframe.**"})
@ComponentScan(basePackages = {"com.taixingyiji.**"})
public class EsApplication {
public static void main(String[] args) {

View File

@@ -1,4 +1,4 @@
package com.hcframe.es;
package com.taixingyiji.es;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

View File

@@ -1,4 +1,4 @@
package com.hcframe.es.annotation;
package com.taixingyiji.es.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -1,7 +1,6 @@
package com.hcframe.es.config;
package com.taixingyiji.es.config;
import com.taixingyiji.base.module.cache.CacheService;
import com.taixingyiji.base.module.datasource.utils.DataSourceUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -1,4 +1,4 @@
package com.hcframe.es.config;
package com.taixingyiji.es.config;
import com.taixingyiji.base.module.auth.dao.FtUserDao;
import com.taixingyiji.base.module.auth.entity.FtUser;

View File

@@ -1,7 +1,7 @@
package com.hcframe.es.controller;
package com.taixingyiji.es.controller;
import com.taixingyiji.base.common.ResultVO;
import com.hcframe.es.service.SearchService;
import com.taixingyiji.es.service.SearchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;

View File

@@ -1,4 +1,4 @@
package com.hcframe.es.entity;
package com.taixingyiji.es.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;

View File

@@ -1,4 +1,4 @@
package com.hcframe.es.esmapper;
package com.taixingyiji.es.esmapper;
import org.elasticsearch.action.search.SearchResponse;

View File

@@ -1,7 +1,7 @@
package com.hcframe.es.esmapper.impl;
package com.taixingyiji.es.esmapper.impl;
import com.taixingyiji.base.common.ServiceException;
import com.hcframe.es.esmapper.EsMapper;
import com.taixingyiji.es.esmapper.EsMapper;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.RequestOptions;

View File

@@ -1,4 +1,4 @@
package com.hcframe.es.service;
package com.taixingyiji.es.service;
import com.taixingyiji.base.common.ResultVO;

View File

@@ -1,9 +1,9 @@
package com.hcframe.es.service.impl;
package com.taixingyiji.es.service.impl;
import com.alibaba.fastjson.JSON;
import com.taixingyiji.base.common.ResultVO;
import com.hcframe.es.esmapper.EsMapper;
import com.hcframe.es.service.SearchService;
import com.taixingyiji.es.esmapper.EsMapper;
import com.taixingyiji.es.service.SearchService;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.text.Text;
import org.elasticsearch.search.SearchHit;