package com.tzld.videoVector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.openfeign.EnableFeignClients; /** * CORS 由 K8s Ingress / 阿里云 Tengine 网关统一处理,后端不再重复加 CORS 头, * 否则浏览器会因 Access-Control-Allow-Origin 出现多个值而拦截响应。 * * @MapperScan 由各 DBConfig (PgVectorDBConfig / VideoVectorDBConfig) 分包配置, * 此处不再放全局 scan。 */ @SpringBootApplication @ServletComponentScan("com.tzld.videoVector.controller") @EnableDiscoveryClient @EnableFeignClients public class Application { private static final Logger LOGGER = LoggerFactory.getLogger(Application.class); public static void main(String[] args) { SpringApplication.run(Application.class, args); LOGGER.info("video-vector-server Start Success"); } }