init
This commit is contained in:
parent
64fa585aa7
commit
9914bb5fa2
4
.idea/compiler.xml
generated
4
.idea/compiler.xml
generated
@ -2,12 +2,14 @@
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="true" />
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="weight-loss-camp-api-base" />
|
||||
<module name="weight-loss-camp-work-api" />
|
||||
<module name="weight-loss-camp-api-data" />
|
||||
<module name="weight-loss-camp-api-base" />
|
||||
<module name="weight-loss-camp-service-api" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
|
||||
2
.idea/encodings.xml
generated
2
.idea/encodings.xml
generated
@ -9,5 +9,7 @@
|
||||
<file url="file://$PROJECT_DIR$/weight-loss-camp-api-data/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/weight-loss-camp-service-api/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/weight-loss-camp-service-api/src/main/resources" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/weight-loss-camp-work-api/src/main/java" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/weight-loss-camp-work-api/src/main/resources" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -8,5 +8,5 @@
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
@ -34,3 +34,46 @@
|
||||
2025-04-11 11:08:56.669 [http-nio-8080-exec-7] [6d5d8acc-c6c7-4af2-aad0-c65c46c5e804] ERROR com.wjbl.weightlosscamp.api.base.web.GlobalExceptionHandler - MethodArgumentNotValidException 参数校验异常: name:营地名称不能为空;longitude:经度不能为空;address:地址不能为空;latitude:纬度不能为空;mainImage:主图不能为空
|
||||
2025-04-11 11:08:56.794 [http-nio-8080-exec-7] [6d5d8acc-c6c7-4af2-aad0-c65c46c5e804] INFO com.wjbl.weightlosscamp.api.base.filter.WebLogFilter - [请求] {"method":"POST","params":{},"body":"{\"name\":\"\",\"longitude\":\"\",\"latitude\":\"\",\"address\":\"\",\"mainImage\":\"\"}","uri":"/weight-loss-camp-service-api/camp/info/update"}
|
||||
2025-04-11 11:08:56.795 [http-nio-8080-exec-7] [6d5d8acc-c6c7-4af2-aad0-c65c46c5e804] INFO com.wjbl.weightlosscamp.api.base.filter.WebLogFilter - [响应] {"duration":"194ms","body":"{\"code\":400,\"msg\":\"name:营地名称不能为空;longitude:经度不能为空;address:地址不能为空;latitude:纬度不能为空;mainImage:主图不能为空\",\"data\":null}","status":200}
|
||||
2025-04-11 11:11:47.588 [Thread-2] [] WARN com.alibaba.nacos.common.executor.ThreadPoolManager - [ThreadPoolManager] Start destroying ThreadPool
|
||||
2025-04-11 11:11:47.588 [Thread-10] [] WARN com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Start destroying common HttpClient
|
||||
2025-04-11 11:11:47.589 [Thread-2] [] WARN com.alibaba.nacos.common.executor.ThreadPoolManager - [ThreadPoolManager] Destruction of the end
|
||||
2025-04-11 11:11:47.588 [Thread-8] [] WARN com.alibaba.nacos.common.notify.NotifyCenter - [NotifyCenter] Start destroying Publisher
|
||||
2025-04-11 11:11:47.589 [Thread-8] [] WARN com.alibaba.nacos.common.notify.NotifyCenter - [NotifyCenter] Destruction of the end
|
||||
2025-04-11 11:11:47.589 [Thread-10] [] WARN com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Destruction of the end
|
||||
2025-04-11 11:11:47.600 [SpringApplicationShutdownHook] [] INFO com.alibaba.cloud.nacos.registry.NacosServiceRegistry - De-registering from Nacos Server now...
|
||||
2025-04-11 11:11:47.642 [SpringApplicationShutdownHook] [] INFO com.alibaba.cloud.nacos.registry.NacosServiceRegistry - De-registration finished.
|
||||
2025-04-11 11:11:55.135 [main] [] INFO com.alibaba.nacos.client.logging.NacosLogging - Nacos Logging Adapter Builder: com.alibaba.nacos.logger.adapter.logback12.LogbackNacosLoggingAdapterBuilder
|
||||
2025-04-11 11:11:55.135 [background-preinit] [] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 8.0.2.Final
|
||||
2025-04-11 11:11:55.140 [main] [] WARN com.alibaba.nacos.client.logging.NacosLogging - Build Nacos Logging Adapter failed: ch/qos/logback/classic/spi/LoggerContextListener
|
||||
2025-04-11 11:11:55.140 [main] [] INFO com.alibaba.nacos.client.logging.NacosLogging - Nacos Logging Adapter Builder: com.alibaba.nacos.logger.adapter.logback14.LogbackNacosLoggingAdapterBuilder
|
||||
2025-04-11 11:11:55.142 [main] [] WARN com.alibaba.nacos.client.logging.NacosLogging - Build Nacos Logging Adapter failed: ch/qos/logback/classic/spi/LoggerContextListener
|
||||
2025-04-11 11:11:55.142 [main] [] INFO com.alibaba.nacos.client.logging.NacosLogging - Nacos Logging Adapter Builder: com.alibaba.nacos.logger.adapter.log4j2.Log4j2NacosLoggingAdapterBuilder
|
||||
2025-04-11 11:11:55.143 [main] [] INFO com.alibaba.nacos.client.logging.NacosLogging - Nacos Logging Adapter: com.alibaba.nacos.logger.adapter.log4j2.Log4J2NacosLoggingAdapter match org.apache.logging.slf4j.Log4jLogger success.
|
||||
2025-04-11 11:11:55.331 [main] [] INFO com.wjbl.weightlosscamp.service.api.WeightLossCampServiceApiApplication - Starting WeightLossCampServiceApiApplication using Java 21.0.6 with PID 19408 (C:\kevin\PROJECT\weigtht-loss-camp\code\service\weight-loss-camp\weight-loss-camp-service-api\target\classes started by Administrator in C:\kevin\PROJECT\weigtht-loss-camp\code\service\weight-loss-camp)
|
||||
2025-04-11 11:11:55.334 [main] [] INFO com.wjbl.weightlosscamp.service.api.WeightLossCampServiceApiApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2025-04-11 11:11:56.316 [main] [] INFO org.springframework.cloud.context.scope.GenericScope - BeanFactory id=d0cf9a2e-f1b7-3e4c-9f96-2847714319c9
|
||||
2025-04-11 11:11:56.688 [main] [] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port 8080 (http)
|
||||
2025-04-11 11:11:56.701 [main] [] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
|
||||
2025-04-11 11:11:56.703 [main] [] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2025-04-11 11:11:56.704 [main] [] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.39]
|
||||
2025-04-11 11:11:56.754 [main] [] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/weight-loss-camp-service-api] - Initializing Spring embedded WebApplicationContext
|
||||
2025-04-11 11:11:56.757 [main] [] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1381 ms
|
||||
2025-04-11 11:11:58.468 [main] [] INFO org.springframework.cloud.commons.util.InetUtils - Cannot determine local hostname
|
||||
2025-04-11 11:11:59.642 [main] [] INFO org.springframework.cloud.commons.util.InetUtils - Cannot determine local hostname
|
||||
2025-04-11 11:11:59.722 [main] [] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8080"]
|
||||
2025-04-11 11:11:59.753 [main] [] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port 8080 (http) with context path '/weight-loss-camp-service-api'
|
||||
2025-04-11 11:11:59.817 [main] [] INFO com.alibaba.nacos.plugin.auth.spi.client.ClientAuthPluginManager - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
|
||||
2025-04-11 11:11:59.817 [main] [] INFO com.alibaba.nacos.plugin.auth.spi.client.ClientAuthPluginManager - [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
|
||||
2025-04-11 11:12:00.683 [main] [] INFO com.alibaba.nacos.common.ability.AbstractAbilityControlManager - Ready to get current node abilities...
|
||||
2025-04-11 11:12:00.685 [main] [] INFO com.alibaba.nacos.common.ability.AbstractAbilityControlManager - Ready to initialize current node abilities, support modes: [SDK_CLIENT]
|
||||
2025-04-11 11:12:00.686 [main] [] INFO com.alibaba.nacos.common.ability.AbstractAbilityControlManager - Initialize current abilities finish...
|
||||
2025-04-11 11:12:00.686 [main] [] INFO com.alibaba.nacos.common.ability.discover.NacosAbilityManagerHolder - [AbilityControlManager] Successfully initialize AbilityControlManager
|
||||
2025-04-11 11:12:00.789 [main] [] INFO com.alibaba.cloud.nacos.registry.NacosServiceRegistry - nacos registry, weight-loss-camp weight-loss-camp-service-api 192.168.137.1:8080 register finished
|
||||
2025-04-11 11:12:01.798 [main] [] INFO org.springframework.cloud.commons.util.InetUtils - Cannot determine local hostname
|
||||
2025-04-11 11:12:01.804 [main] [] INFO com.wjbl.weightlosscamp.service.api.WeightLossCampServiceApiApplication - Started WeightLossCampServiceApiApplication in 8.041 seconds (process running for 8.779)
|
||||
2025-04-11 11:12:06.924 [http-nio-8080-exec-1] [] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/weight-loss-camp-service-api] - Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||
2025-04-11 11:12:06.924 [http-nio-8080-exec-1] [] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
|
||||
2025-04-11 11:12:06.926 [http-nio-8080-exec-1] [] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
|
||||
2025-04-11 11:12:07.086 [http-nio-8080-exec-1] [ae234a64-61df-41c8-87db-d2509f961c6f] ERROR com.wjbl.weightlosscamp.api.base.web.GlobalExceptionHandler - MethodArgumentNotValidException 参数校验异常: latitude:纬度不能为空;name:营地名称不能为空;address:地址不能为空;longitude:经度不能为空;mainImage:主图不能为空
|
||||
2025-04-11 11:12:07.238 [http-nio-8080-exec-1] [ae234a64-61df-41c8-87db-d2509f961c6f] INFO com.wjbl.weightlosscamp.api.base.filter.WebLogFilter - [请求] {"method":"POST","params":{},"body":"{\"name\":\"\",\"longitude\":\"\",\"latitude\":\"\",\"address\":\"\",\"mainImage\":\"\"}","uri":"/weight-loss-camp-service-api/camp/info/update"}
|
||||
2025-04-11 11:12:07.240 [http-nio-8080-exec-1] [ae234a64-61df-41c8-87db-d2509f961c6f] INFO com.wjbl.weightlosscamp.api.base.filter.WebLogFilter - [响应] {"duration":"302ms","body":"{\"code\":400,\"msg\":\"latitude:纬度不能为空;name:营地名称不能为空;address:地址不能为空;longitude:经度不能为空;mainImage:主图不能为空\",\"data\":null}","status":200}
|
||||
|
||||
1
pom.xml
1
pom.xml
@ -26,6 +26,7 @@
|
||||
<module>weight-loss-camp-api-base</module>
|
||||
<module>weight-loss-camp-api-data</module>
|
||||
<module>weight-loss-camp-service-api</module>
|
||||
<module>weight-loss-camp-work-api</module>
|
||||
</modules>
|
||||
|
||||
<dependencyManagement>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -55,5 +55,20 @@
|
||||
<groupId>com.alibaba.fastjson2</groupId>
|
||||
<artifactId>fastjson2</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-generator</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.freemarker</groupId>
|
||||
<artifactId>freemarker</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -1,4 +1,4 @@
|
||||
package com.wjbl.weightlosscamp.service.api.controller;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@ -9,8 +9,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.wjbl.weightlosscamp.api.base.core.ApiResult;
|
||||
import com.wjbl.weightlosscamp.api.base.core.IdParam;
|
||||
import com.wjbl.weightlosscamp.api.base.core.PageParam;
|
||||
import com.wjbl.weightlosscamp.service.api.dto.CampInfoDTO;
|
||||
import com.wjbl.weightlosscamp.service.api.service.CampInfoService;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.dto.CampInfoDTO;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.service.CampInfoService;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@ -1,4 +1,4 @@
|
||||
package com.wjbl.weightlosscamp.service.api.dto;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@ -1,4 +1,4 @@
|
||||
package com.wjbl.weightlosscamp.service.api.dto;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@ -1,4 +1,4 @@
|
||||
package com.wjbl.weightlosscamp.service.api.entity;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.wjbl.weightlosscamp.api.base.entity.BaseEntity;
|
||||
@ -1,4 +1,4 @@
|
||||
package com.wjbl.weightlosscamp.service.api.entity;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.wjbl.weightlosscamp.api.base.entity.BaseEntity;
|
||||
@ -1,4 +1,4 @@
|
||||
package com.wjbl.weightlosscamp.service.api.entity;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.wjbl.weightlosscamp.api.base.entity.BaseEntity;
|
||||
@ -1,4 +1,4 @@
|
||||
package com.wjbl.weightlosscamp.service.api.entity;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.wjbl.weightlosscamp.api.base.entity.BaseEntity;
|
||||
@ -1,7 +1,7 @@
|
||||
package com.wjbl.weightlosscamp.service.api.mapper;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wjbl.weightlosscamp.service.api.entity.CampClassroomImage;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.entity.CampClassroomImage;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
@ -1,7 +1,7 @@
|
||||
package com.wjbl.weightlosscamp.service.api.mapper;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wjbl.weightlosscamp.service.api.entity.CampClassroom;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.entity.CampClassroom;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
@ -1,7 +1,7 @@
|
||||
package com.wjbl.weightlosscamp.service.api.mapper;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wjbl.weightlosscamp.service.api.entity.CampImage;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.entity.CampImage;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
@ -1,7 +1,7 @@
|
||||
package com.wjbl.weightlosscamp.service.api.mapper;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wjbl.weightlosscamp.service.api.entity.CampInfo;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.entity.CampInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
@ -1,12 +1,12 @@
|
||||
package com.wjbl.weightlosscamp.service.api.service;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.wjbl.weightlosscamp.api.base.core.ApiResult;
|
||||
import com.wjbl.weightlosscamp.api.base.core.IdParam;
|
||||
import com.wjbl.weightlosscamp.api.base.core.PageParam;
|
||||
import com.wjbl.weightlosscamp.service.api.dto.CampInfoDTO;
|
||||
import com.wjbl.weightlosscamp.service.api.entity.CampInfo;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.dto.CampInfoDTO;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.entity.CampInfo;
|
||||
|
||||
/**
|
||||
* 营地信息服务接口
|
||||
@ -1,4 +1,4 @@
|
||||
package com.wjbl.weightlosscamp.service.api.service.impl;
|
||||
package com.wjbl.weightlosscamp.service.api.module.camp.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
@ -6,10 +6,10 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.wjbl.weightlosscamp.api.base.core.ApiResult;
|
||||
import com.wjbl.weightlosscamp.api.base.core.IdParam;
|
||||
import com.wjbl.weightlosscamp.api.base.core.PageParam;
|
||||
import com.wjbl.weightlosscamp.service.api.dto.CampInfoDTO;
|
||||
import com.wjbl.weightlosscamp.service.api.entity.CampInfo;
|
||||
import com.wjbl.weightlosscamp.service.api.mapper.CampInfoMapper;
|
||||
import com.wjbl.weightlosscamp.service.api.service.CampInfoService;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.dto.CampInfoDTO;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.entity.CampInfo;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.mapper.CampInfoMapper;
|
||||
import com.wjbl.weightlosscamp.service.api.module.camp.service.CampInfoService;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user