2024年1月3日

摘要: registry.addMapping("/**") //配置任何域名都可以访问 .allowedOriginPatterns("*") //许跨域的任何请求方法 .allowedMethods("*") //允许发送cookie .allowCredentials(true) //允许最大得到响应 阅读全文
posted @ 2024-01-03 10:53 方毅 阅读(3) 评论(0) 推荐(0) 编辑

2023年12月19日

摘要: package com.itfangyi;import com.baomidou.mybatisplus.generator.FastAutoGenerator;import com.baomidou.mybatisplus.generator.config.OutputFile;import co 阅读全文
posted @ 2023-12-19 10:46 方毅 阅读(25) 评论(0) 推荐(0) 编辑

2023年12月18日

摘要: ### server: port: 9999mybatis-plus: configuration: map-underscore-to-camel-case: true log-impl: org.apache.ibatis.logging.stdout.StdOutImpl type-alias 阅读全文
posted @ 2023-12-18 15:25 方毅 阅读(0) 评论(0) 推荐(0) 编辑

2023年12月12日

摘要: 配置响应公共代码和消息 SUCCESS(200,"成功"),FAIL(201, "失败"),PARAM_ERROR(203, "参数错误"),DATA_ERROR(204, "数据异常"),ILLEGAL_REQUEST(205, "非法请求"),REPEAT_SUBMIT(206, "重复提交") 阅读全文
posted @ 2023-12-12 17:26 方毅 阅读(6) 评论(0) 推荐(0) 编辑

2023年11月10日

摘要: 1.导入上传文件gav坐标 <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload --> <dependency> <groupId>commons-fileupload</groupId> <ar 阅读全文
posted @ 2023-11-10 15:56 方毅 阅读(1) 评论(0) 推荐(0) 编辑
摘要: // 获取文件名称String originalFilename = multipartFile.getOriginalFilename();// 获取文件的后缀名String substring = originalFilename.substring(originalFilename.lastI 阅读全文
posted @ 2023-11-10 14:19 方毅 阅读(1) 评论(0) 推荐(0) 编辑