feat: 添加.gitignore文件并清理编译产物

🔧 新增功能:
- 添加完整的.gitignore文件,覆盖所有编译产物和临时文件
- 从Git跟踪中移除Maven target目录下的编译产物
- 从Git跟踪中移除日志文件和临时文件

📁 忽略文件类型:
- Maven编译产物 (target/**, *.jar, *.war等)
- 日志文件 (logs/, *.log, *.log.*)
- IDE文件 (.idea/, *.iml, .vscode/等)
- Node.js文件 (node_modules/, dist/, .env等)
- 操作系统文件 (.DS_Store, Thumbs.db等)
- 临时文件 (*.tmp, *.bak, *.swp等)
- 部署包 (packages/, *.tar.gz, *.zip等)

 优化效果:
- 减少仓库大小,提高克隆速度
- 避免提交不必要的编译产物
- 保持仓库整洁,只包含源代码
- 防止敏感配置文件意外提交
This commit is contained in:
2025-07-18 11:49:36 +08:00
parent 620f38318e
commit 9f5a3601ea
245 changed files with 299 additions and 19813 deletions
@@ -1,52 +0,0 @@
2025-07-17T09:52:07.419+08:00 WARN 90872 --- [restartedMain] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml
2025-07-17T09:52:07.481+08:00 WARN 90872 --- [restartedMain] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml
2025-07-17T09:52:07.487+08:00 INFO 90872 --- [restartedMain] c.e.gateway.GatewayApplication : Starting GatewayApplication using Java 23.0.2 with PID 90872 (/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-gateway/target/classes started by huazhongmin in /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-gateway)
2025-07-17T09:52:07.488+08:00 DEBUG 90872 --- [restartedMain] c.e.gateway.GatewayApplication : Running with Spring Boot v3.0.2, Spring v6.0.4
2025-07-17T09:52:07.488+08:00 INFO 90872 --- [restartedMain] c.e.gateway.GatewayApplication : The following 1 profile is active: "local"
2025-07-17T09:52:07.549+08:00 INFO 90872 --- [restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2025-07-17T09:52:07.550+08:00 INFO 90872 --- [restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2025-07-17T09:52:08.606+08:00 INFO 90872 --- [restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2025-07-17T09:52:08.608+08:00 INFO 90872 --- [restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2025-07-17T09:52:08.627+08:00 INFO 90872 --- [restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 8 ms. Found 0 Redis repository interfaces.
2025-07-17T09:52:08.798+08:00 INFO 90872 --- [restartedMain] o.s.cloud.context.scope.GenericScope : BeanFactory id=5a741552-34ee-38c0-936b-699d9d791837
2025-07-17T09:52:09.026+08:00 INFO 90872 --- [restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2025-07-17T09:52:09.027+08:00 INFO 90872 --- [restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2025-07-17T09:52:09.028+08:00 INFO 90872 --- [restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'reactorDeferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2025-07-17T09:52:10.147+08:00 DEBUG 90872 --- [restartedMain] o.s.c.gateway.config.GatewayProperties : Routes supplied from Gateway Properties: [RouteDefinition{id='emotion-user-route', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/user/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=0}}], uri=http://localhost:19001, order=0, metadata={}}, RouteDefinition{id='emotion-captcha-route', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/captcha/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=0}}], uri=http://localhost:19001, order=0, metadata={}}, RouteDefinition{id='emotion-oauth-route', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/oauth/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=0}}], uri=http://localhost:19001, order=0, metadata={}}, RouteDefinition{id='emotion-ai-route', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/ai/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=0}}], uri=http://localhost:19002, order=0, metadata={}}]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [After]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Before]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Between]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Cookie]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Header]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Host]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Method]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Path]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Query]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [ReadBody]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [RemoteAddr]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [XForwardedRemoteAddr]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [Weight]
2025-07-17T09:52:10.329+08:00 INFO 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : Loaded RoutePredicateFactory [CloudFoundryRouteService]
2025-07-17T09:52:10.352+08:00 INFO 90872 --- [restartedMain] c.a.c.s.g.s.SentinelSCGAutoConfiguration : [Sentinel SpringCloudGateway] register SentinelGatewayFilter with order: -2147483648
2025-07-17T09:52:10.417+08:00 DEBUG 90872 --- [restartedMain] o.s.w.r.handler.SimpleUrlHandlerMapping : Patterns [/webjars/**, /**] in 'resourceHandlerMapping'
2025-07-17T09:52:10.524+08:00 INFO 90872 --- [restartedMain] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2025-07-17T09:52:10.558+08:00 DEBUG 90872 --- [restartedMain] o.s.w.r.r.m.a.ControllerMethodResolver : ControllerAdvice beans: none
2025-07-17T09:52:10.591+08:00 INFO 90872 --- [restartedMain] c.a.c.s.g.s.SentinelSCGAutoConfiguration : [Sentinel SpringCloudGateway] register SentinelGatewayBlockExceptionHandler
2025-07-17T09:52:10.595+08:00 DEBUG 90872 --- [restartedMain] o.s.w.s.adapter.HttpWebHandlerAdapter : enableLoggingRequestDetails='false': form data and headers will be masked to prevent unsafe logging of potentially sensitive data
2025-07-17T09:52:10.746+08:00 INFO 90872 --- [restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2025-07-17T09:52:10.770+08:00 WARN 90872 --- [restartedMain] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2025-07-17T09:52:10.851+08:00 INFO 90872 --- [restartedMain] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port 19000
2025-07-17T09:52:10.881+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition emotion-user-route applying {_genkey_0=/user/**} to Path
2025-07-17T09:52:10.894+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition emotion-user-route applying filter {_genkey_0=0} to StripPrefix
2025-07-17T09:52:10.898+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition matched: emotion-user-route
2025-07-17T09:52:10.898+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition emotion-captcha-route applying {_genkey_0=/captcha/**} to Path
2025-07-17T09:52:10.899+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition emotion-captcha-route applying filter {_genkey_0=0} to StripPrefix
2025-07-17T09:52:10.900+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition matched: emotion-captcha-route
2025-07-17T09:52:10.900+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition emotion-oauth-route applying {_genkey_0=/oauth/**} to Path
2025-07-17T09:52:10.900+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition emotion-oauth-route applying filter {_genkey_0=0} to StripPrefix
2025-07-17T09:52:10.901+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition matched: emotion-oauth-route
2025-07-17T09:52:10.901+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition emotion-ai-route applying {_genkey_0=/ai/**} to Path
2025-07-17T09:52:10.902+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition emotion-ai-route applying filter {_genkey_0=0} to StripPrefix
2025-07-17T09:52:10.902+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.r.RouteDefinitionRouteLocator : RouteDefinition matched: emotion-ai-route
2025-07-17T09:52:10.906+08:00 DEBUG 90872 --- [restartedMain] o.s.c.g.filter.GatewayMetricsFilter : New routes count: 4
2025-07-17T09:52:10.909+08:00 INFO 90872 --- [restartedMain] c.e.gateway.GatewayApplication : Started GatewayApplication in 3.87 seconds (process running for 4.294)