04 2023 档案

摘要:报错信息 nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: @TableId can't more than one in Class: "com.sangeng.domain.ent 阅读全文
posted @ 2023-04-30 09:58 北兢王 阅读(4762) 评论(0) 推荐(0) 编辑
摘要:public class BeanCopyUtils { private BeanCopyUtils() { } public static <V> V copyBean(Object source, Class<V> clazz) { //创建目标对象 V result = null; try { 阅读全文
posted @ 2023-04-19 22:44 北兢王 阅读(26) 评论(0) 推荐(0) 编辑
摘要:@Configuration public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { // 设置允许跨域的路径 regist 阅读全文
posted @ 2023-04-19 22:24 北兢王 阅读(6) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-04-18 21:04 北兢王 阅读(17) 评论(0) 推荐(0) 编辑
摘要:统一响应类 @JsonInclude(JsonInclude.Include.NON_NULL) public class ResponseResult<T> implements Serializable { private Integer code; private String msg; pr 阅读全文
posted @ 2023-04-18 11:20 北兢王 阅读(112) 评论(0) 推荐(0) 编辑
摘要:添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> </dependency> 编写测试类 import com.sangeng 阅读全文
posted @ 2023-04-17 18:49 北兢王 阅读(58) 评论(0) 推荐(0) 编辑
摘要:pom配置 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.0</version> </parent> <dep 阅读全文
posted @ 2023-04-16 15:51 北兢王 阅读(16) 评论(0) 推荐(0) 编辑
摘要:<build> <plugins> <!--springboot打包插件--> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugi 阅读全文
posted @ 2023-04-16 15:45 北兢王 阅读(32) 评论(0) 推荐(0) 编辑
摘要:<mirrors> <mirror> <id>aliyunmaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>https://maven.aliyun.com/repository/central</url> 阅读全文
posted @ 2023-04-16 15:06 北兢王 阅读(84) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
主题色彩