Commit 19b1d9c1 by henry

项目目录名称

1 parent 24484743
......@@ -19,10 +19,24 @@
<file url="file://$PROJECT_DIR$/arch-gateway/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/arch-overall/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/arch-overall/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/arch-sys/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/arch-sys/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/arch-system/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/arch-system/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/file-store/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/file-store/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/mybatis/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/mybatis/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/office/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/office/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/sys-logs/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/clouds/sys-logs/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/sys-manage/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/sys-manage/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/system-manage/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/system-manage/src/main/resources" charset="UTF-8" />
</component>
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
......@@ -17,6 +17,34 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!--SpringBoot2.4.x之后默认不加载bootstrap.yml文件,需要在pom里加上依赖-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!--openfeign-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<!--sentinel依赖-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
......@@ -54,10 +54,6 @@
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package org.arch.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Log {
String value() default "";
}
......@@ -2,9 +2,8 @@ package org.arch.annotation;
import org.arch.logenum.LogEventTypeEnum;
import org.arch.logenum.LogLevEnum;
import org.arch.logenum.LogTypeEnum;
import org.arch.logenum.LogOperTypeEnum;
import java.lang.annotation.*;
......@@ -18,29 +17,29 @@ import java.lang.annotation.*;
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AutoLog {
public @interface OperLog {
/**
* 功能描述
* 操作类型
*/
LogEventTypeEnum value();
LogOperTypeEnum value();
LogLevEnum LogLevValue();
/**
* 日志类型
* @return
*/
LogTypeEnum logTypeValue();
LogTypeEnum LogTypeValue();
/**
* 是否保存请求的参数
* 功能描述
* @return
*/
boolean isSaveRequestData() default true;
String operDes() default "";
/**
* 是否保存响应的参数
* 所属模块
* @return
*/
boolean isSaveResponseData() default true;
//操作描述
String description() default "";
String moduleName() default "";
}
package org.arch.annotation;
import java.lang.annotation.*;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OperaLogModel {
//模块名
String value();
}
package org.arch.aspect;
import cn.hutool.core.thread.threadlocal.NamedThreadLocal;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.arch.entity.SysEventLog;
import org.arch.annotation.OperLog;
import org.arch.service.SysEventLogService;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.validation.BindingResult;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Collection;
import java.util.Date;
import java.util.Map;
import java.util.UUID;
@Slf4j
@Aspect
@Component
public class AutoLogConfigAspect {
/** 计算操作消耗时间 */
private static final ThreadLocal<Long> TIME_THREADLOCAL = new NamedThreadLocal<Long>("Cost Time");
@Autowired
private SysEventLogService sysEventLogService;
@Pointcut("@annotation(org.arch.annotation.OperLog)")
public void logPointCut() {
}
/**
* 处理请求前执行
*/
@Before("logPointCut()")
public void boBefore(JoinPoint joinPoint)
{
TIME_THREADLOCAL.set(System.currentTimeMillis());
}
/**
* 后置通过,⽬标⽅法正常执⾏完毕时执⾏
*
*/
@AfterReturning(pointcut = "@annotation(controllerLog)", returning = "jsonResult")
public void doAfterReturning(JoinPoint joinPoint, OperLog controllerLog, Object jsonResult) {
handleLog(joinPoint, controllerLog, null, jsonResult);
}
/**
* 异常通知,⽬标⽅法发⽣异常的时候执⾏
*
*/
@AfterThrowing(value = "@annotation(controllerLog)", throwing = "e")
public void doAfterThrowing(JoinPoint joinPoint, OperLog controllerLog, Exception e) {
handleLog(joinPoint, controllerLog, e, null);
}
protected void handleLog(final JoinPoint joinPoint, OperLog controllerLog, final Exception e, Object jsonResult) {
try {
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
ApiOperation operation = methodSignature.getMethod().getAnnotation(ApiOperation.class);
String title = null;
if (ObjectUtils.isNotNull(operation)){
title = operation.value();
}
//计算耗时
long cost = System.currentTimeMillis() - TIME_THREADLOCAL.get();
// 请求的地址
ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
assert requestAttributes != null;
HttpServletRequest request = requestAttributes.getRequest();
HttpServletResponse response = requestAttributes.getResponse();
String ip = getIpAddr(request);
// *========数据库日志=========*//
SysEventLog sysEventLog = new SysEventLog();
String userName = "测试";
// 操作人
sysEventLog.setUsername(userName);
sysEventLog.setLogType(controllerLog.logTypeValue().name());
sysEventLog.setUserCode(userName);
sysEventLog.setUserId(userName);
sysEventLog.setEventContent(title);
sysEventLog.setLogId(UUID.randomUUID() + "".replace("-",""));
// 是否成功标志 1 成功 0 失败
sysEventLog.setResult("1");
// 设置ip
sysEventLog.setIpAddr(ip);
// 设置请求路径
sysEventLog.setOperUrl(request.getRequestURI());
// 接口响应耗时
sysEventLog.setCostTime(cost);
sysEventLog.setIsRead(0);
sysEventLog.setIsWarn(1);
// 接口响应错误
if (e != null) {
sysEventLog.setResult("0");
sysEventLog.setErrorMsg(e.getMessage());
sysEventLog.setIsWarn(0);
}
// 设置方法名称
String className = joinPoint.getTarget().getClass().getName();
String methodName = joinPoint.getSignature().getName();
sysEventLog.setMethod(className + "." + methodName + "()");
// 设置请求方式
sysEventLog.setRequestMethod(request.getMethod());
// 处理设置注解上的参数
//getControllerMethodDescription(joinPoint, controllerLog, sysEventLog, jsonResult, request);
// 保存数据库
sysEventLog.setCreateTime(new Date());
sysEventLog.setRequestTime(new Date());
// System.out.println(sysEventLog);
sysEventLogService.save(sysEventLog);
} catch (Exception exp) {
// 记录本地异常日志
log.error("==前置通知异常==");
log.error("异常信息:{}", exp.getMessage());
exp.printStackTrace();
}
}
public static String getIpAddr(HttpServletRequest request) {
if (request == null) {
return "unknown";
}
String ip = request.getHeader("x-forwarded-for");
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("Proxy-Client-IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("X-Forwarded-For");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("WL-Proxy-Client-IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("X-Real-IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
try {
ip = InetAddress.getLocalHost().getHostAddress();
} catch (UnknownHostException e) {
throw new RuntimeException(e);
}
}
return ip;
}
private String argsArrayToString(Object[] paramsArray) {
StringBuilder params = new StringBuilder();
if (paramsArray != null && paramsArray.length > 0) {
for (Object o : paramsArray) {
if (ObjectUtils.isNotNull(o) && !isFilterObject(o)) {
try {
Object jsonObj = JSON.toJSON(o);
params.append(jsonObj.toString()).append(" ");
} catch (Exception e) {
log.error(e.getMessage());
}
}
}
}
return params.toString().trim();
}
@SuppressWarnings("rawtypes")
public boolean isFilterObject(final Object o) {
Class<?> clazz = o.getClass();
if (clazz.isArray()) {
return clazz.getComponentType().isAssignableFrom(MultipartFile.class);
} else if (Collection.class.isAssignableFrom(clazz)) {
Collection collection = (Collection) o;
for (Object value : collection) {
return value instanceof MultipartFile;
}
} else if (Map.class.isAssignableFrom(clazz)) {
Map map = (Map) o;
for (Object value : map.entrySet()) {
Map.Entry entry = (Map.Entry) value;
return entry.getValue() instanceof MultipartFile;
}
}
return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse
|| o instanceof BindingResult;
}
}
package org.arch.config;
import org.arch.filter.LoginFilter;
import org.arch.filter.SqlFilter;
import org.arch.filter.LoginFilter;
import org.arch.filter.XssFilter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -27,12 +27,9 @@ public class LogAutoConfiguration {
private boolean xssFlag;
@Autowired // 一定要注入,才会让 DemoFilter中的 @Autowrie生效
private LoginFilter loginFilter;
public LogAutoConfiguration() {
log.info("加载logging配置...");
}
@Bean
public FilterRegistrationBean xssFilterRegistration() {
FilterRegistrationBean registration = new FilterRegistrationBean();
......
......@@ -3,7 +3,7 @@ package org.arch.logenum;
/**
* 操作事件类型枚举类
*/
public enum LogEventTypeEnum {
public enum LogOperTypeEnum {
/**
* 其它
*/
......@@ -12,7 +12,7 @@ public enum LogEventTypeEnum {
/**
* 新增
*/
INSERT,
ADD,
/**
* 修改
......@@ -27,7 +27,7 @@ public enum LogEventTypeEnum {
/**
* 查询
*/
SEARCH,
QUERY,
/**
* 授权
......@@ -52,6 +52,10 @@ public enum LogEventTypeEnum {
/**
* 模版下载
*/
DOWNLOAD
DOWNLOAD,
/**
* 上传
*/
UPLOAD
}
package org.arch.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.arch.entity.SysEventLog;
import org.arch.modules.sysmanage.dto.UserDto;
import org.springframework.data.domain.Page;
import org.arch.entity.SysEventLog;
import org.springframework.data.domain.PageRequest;
import javax.servlet.http.HttpServletRequest;
......
......@@ -8,9 +8,9 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import org.arch.entity.SysEventLog;
import org.arch.service.SysEventLogService;
import org.arch.mapper.SysEventLogMapper;
import org.arch.modules.sysmanage.dto.UserDto;
import org.arch.service.SysEventLogService;
import org.arch.utils.StringUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
......
......@@ -22,7 +22,7 @@ import org.springframework.context.annotation.Configuration;
import java.util.Properties;
@Configuration
@ComponentScan("com.eadc")
@ComponentScan("org.arch")
public class MybatisConfig {
/**
* 配置mybatis的分页插件pageHelper
......
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.eadc.config.MybatisConfig
org.arch.config.MybatisConfig
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<name>微服务组件</name>
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
......@@ -23,6 +23,19 @@
<artifactId>arch-base</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<!--(nacos统一配置中心管理依赖)-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
......@@ -48,7 +61,11 @@
<groupId>org.arch</groupId>
<artifactId>mybatis</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.arch</groupId>
<artifactId>log</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
......
package org.arch.modules.design;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableAsync
@SpringBootApplication
@EnableDiscoveryClient
@EnableScheduling
@EnableTransactionManagement
public class ArchOverallApp {
public static void main(String[] args) {
SpringApplication.run(ArchOverallApp.class, args);
}
}
......@@ -5,6 +5,8 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.arch.Result;
import org.arch.logenum.LogOperTypeEnum;
import org.arch.logenum.LogTypeEnum;
import org.arch.modules.archoverall.dto.BatchUpdateDTO;
import org.arch.modules.archoverall.dto.ArchiElementDTO;
import org.arch.modules.design.entity.ArchiElement;
......@@ -13,7 +15,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.arch.annotation.OperLog;
@Api(tags = {"元素管理"})
@RestController
......@@ -25,49 +27,49 @@ public class ArchiElementController {
@PostMapping(value = "/")
// @ApiOperation(DescContent.QUERY_PAGINATED_LIST_ELEMENTS)
// @AutoLog(value = LogEventTypeEnum.SEARCH, LogTypeValue = LogTypeEnum.BUSI_LOG, LogLevValue = LogLevEnum.LOW)
@OperLog(value = LogOperTypeEnum.QUERY, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "获取元素信息",moduleName = "元素管理")
public Result gtArchiElement(@RequestBody ArchiElementDTO dto) {
return Result.success(archiElementService.gtArchiElement(dto));
}
@PostMapping("/ad-ele")
@ApiOperation("新增元素")
// @AutoLog(value = LogEventTypeEnum.INSERT, LogTypeValue = LogTypeEnum.BUSI_LOG, LogLevValue = LogLevEnum.MIDDLE, description = "新增元素")
@OperLog(value = LogOperTypeEnum.ADD, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "新增元素",moduleName = "元素管理")
public Result adEle(@RequestBody ArchiElement archiElements) {
return Result.success(archiElementService.insert(archiElements));
}
@PostMapping("/upd-ele")
@ApiOperation("修改元素")
// @AutoLog(value = LogEventTypeEnum.UPDATE, LogTypeValue = LogTypeEnum.BUSI_LOG, LogLevValue = LogLevEnum.MIDDLE, description = "修改元素")
@OperLog(value = LogOperTypeEnum.UPDATE, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "更新元素",moduleName = "元素管理")
public Result updEle(@RequestBody ArchiElement archiElement) {
return Result.success(archiElementService.update(archiElement));
}
@PostMapping("/del-ele")
@ApiOperation("根据Id删除元素")
// @AutoLog(value = LogEventTypeEnum.DELETE, LogTypeValue = LogTypeEnum.BUSI_LOG, LogLevValue = LogLevEnum.HIGH, description = "删除元素")
@OperLog(value = LogOperTypeEnum.DELETE, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "删除元素",moduleName = "元素管理")
public Result delEle(@RequestBody ArchiElement archiElement) {
return Result.success(archiElementService.delete(archiElement));
}
@PostMapping(value = "/updEleBatch")
@ApiOperation(value = "批量发布版本")
// @AutoLog(value = LogEventTypeEnum.OTHER, LogTypeValue = LogTypeEnum.BUSI_LOG, LogLevValue = LogLevEnum.LOW, description = "批量发布版本")
@OperLog(value = LogOperTypeEnum.OTHER, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "批量发布版本",moduleName = "元素管理")
public Result updEleBatch(@RequestBody BatchUpdateDTO requestMap) {
return Result.success(archiElementService.updEleBatch(requestMap));
}
@PostMapping(value = "/archi-ele-list")
@ApiOperation(value = "查询元素列表")
// @AutoLog(value = LogEventTypeEnum.SEARCH, LogTypeValue = LogTypeEnum.BUSI_LOG, LogLevValue = LogLevEnum.LOW, description = "查询元素列表")
@OperLog(value = LogOperTypeEnum.QUERY, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "查询元素列表",moduleName = "元素管理")
public Result gtEleList(@RequestBody ArchiElement params) {
return Result.success(archiElementService.gtEle(params));
}
@PostMapping(value = "/ele-list")
@ApiOperation(value = "获取元素列表")
// @AutoLog(value = LogEventTypeEnum.SEARCH, LogTypeValue = LogTypeEnum.BUSI_LOG, LogLevValue = LogLevEnum.LOW, description = "获取元素列表")
@OperLog(value = LogOperTypeEnum.QUERY, logTypeValue = LogTypeEnum.BUSI_LOG, operDes = "获取元素列表",moduleName = "元素管理")
public Result getEleList(@RequestBody ArchiElementDTO dto) {
return Result.success(archiElementService.gtEleList(dto));
}
......
......@@ -3,12 +3,13 @@ package org.arch.modules.design.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.arch.modules.archoverall.dto.ArchiElementDTO;
import org.arch.modules.design.entity.ArchiElement;
import java.util.List;
@Mapper
public interface ArchiElementMapper extends MPJBaseMapper<ArchiElement> {
/**
......
server:
port: 17003
nacos:
server-addr: 192.168.0.210:18848
server-addr: 192.168.0.200:18848
username: nacos
password: nacos
namespace: ${NAMESPACE:public}
......
spring:
application:
name: eadc-architecture
name: arch-overall
main:
# 解决升级 Spring Boot 2.6后,因循环引用导致启动时报错是否允许循环引用
allow-circular-references: true
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.arch</groupId>
<artifactId>arch-toos</artifactId>
<artifactId>arch</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!