diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/controller/robot/RobotInformationController.java b/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/controller/robot/RobotInformationController.java deleted file mode 100644 index 0ec2007b5..000000000 --- a/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/controller/robot/RobotInformationController.java +++ /dev/null @@ -1,27 +0,0 @@ -package cn.iocoder.cloud.module.remote.controller.robot; - -import cn.iocoder.yudao.framework.common.pojo.CommonResult; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; - - -@Tag(name = "管理后台 - 车辆信息") -@RestController -@RequestMapping("/remote/robot/information") -@Validated -public class RobotInformationController { - - - @GetMapping("/list") - @Operation(summary = "获得车辆信息分页") - public CommonResult getRobotList() { - return success("测试"); - } - -} diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/RemoteServerApplication.java b/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/yudao/module/remote/RemoteServerApplication.java similarity index 56% rename from yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/RemoteServerApplication.java rename to yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/yudao/module/remote/RemoteServerApplication.java index 6d2fc2a6e..1f2ce2c9e 100644 --- a/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/RemoteServerApplication.java +++ b/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/yudao/module/remote/RemoteServerApplication.java @@ -1,28 +1,23 @@ -package cn.iocoder.cloud.module.remote; +package cn.iocoder.yudao.module.remote; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; import org.springframework.scheduling.annotation.EnableAsync; -/** - * 项目的启动类 - * - * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 - * - * @author 芋道源码 - */ @SpringBootApplication +@EnableCaching +@EnableAsync public class RemoteServerApplication { - public static void main(String[] args) { // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 + // 如果你碰到 启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 + // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 SpringApplication.run(RemoteServerApplication.class, args); // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 + // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 + // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章 } - } diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-dev.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-dev.yaml index e97c6ff0b..1123ad64a 100644 --- a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-dev.yaml +++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-dev.yaml @@ -28,5 +28,27 @@ management: exposure: include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 +spring: + redis: + host: 127.0.0.1 # 地址 + port: 6379 # 端口 + database: 0 # 数据库索引 + # password: 123456 # 密码,建议生产环境开启 + boot: + admin: + # Spring Boot Admin Client 客户端的相关配置 + client: + instance: + service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME] +# 日志文件配置 +logging: + level: + # 配置自己写的 MyBatis Mapper 打印日志 + cn.iocoder.yudao.module.system.dal.mysql: debug + cn.iocoder.yudao.module.system.dal.mysql.sms.SmsChannelMapper: INFO # 配置 SmsChannelMapper 的日志级别为 info + org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示 + file: + name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 + diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-local.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-local.yaml index e97c6ff0b..eaa73c742 100644 --- a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-local.yaml +++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-local.yaml @@ -28,5 +28,27 @@ management: exposure: include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 +spring: + redis: + host: 127.0.0.1 # 地址 + port: 6379 # 端口 + database: 0 # 数据库索引 + # password: 123456 # 密码,建议生产环境开启 + boot: + admin: + # Spring Boot Admin Client 客户端的相关配置 + client: + instance: + service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME] +# 日志文件配置 +logging: + level: + # 配置自己写的 MyBatis Mapper 打印日志 + cn.iocoder.yudao.module.system.dal.mysql: debug + cn.iocoder.yudao.module.system.dal.mysql.sms.SmsChannelMapper: INFO # 配置 SmsChannelMapper 的日志级别为 info + org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示 + file: + name: C:\system\install\log/${spring.application.name}.log + diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application.yaml index 48012dc8c..d6365ccf1 100644 --- a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application.yaml +++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application.yaml @@ -24,6 +24,23 @@ spring: server: port: 48084 +logging: + file: + name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 + +springdoc: + api-docs: + enabled: true # 1. 是否开启 Swagger 接文档的元数据 + path: /v3/api-docs + swagger-ui: + enabled: true # 2.1 是否开启 Swagger 文档的官方 UI 界面 + path: /swagger-ui + default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档 + +knife4j: + enable: true # 2.2 是否开启 Swagger 文档的 Knife4j UI 界面 + setting: + language: zh_cn debug: false diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/logback-spring.xml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/logback-spring.xml index b1b9f3faf..e2782c3e8 100644 --- a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/logback-spring.xml +++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/logback-spring.xml @@ -4,7 +4,7 @@ - +