04 2023 档案
摘要:报错信息 nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: @TableId can't more than one in Class: "com.sangeng.domain.ent
阅读全文
摘要:public class BeanCopyUtils { private BeanCopyUtils() { } public static <V> V copyBean(Object source, Class<V> clazz) { //创建目标对象 V result = null; try {
阅读全文
摘要:@Configuration public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { // 设置允许跨域的路径 regist
阅读全文
摘要:from lxml import etree def xmlToDict(node): if len(node) == 0: return node.tag, node.text data = {} temp = None for child in node: key, val = xmlToDic
阅读全文
摘要:统一响应类 @JsonInclude(JsonInclude.Include.NON_NULL) public class ResponseResult<T> implements Serializable { private Integer code; private String msg; pr
阅读全文
摘要:添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> </dependency> 编写测试类 import com.sangeng
阅读全文
摘要:pom配置 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.0</version> </parent> <dep
阅读全文
摘要:<build> <plugins> <!--springboot打包插件--> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugi
阅读全文
摘要:<mirrors> <mirror> <id>aliyunmaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>https://maven.aliyun.com/repository/central</url>
阅读全文