会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fangyilovebc
导航
博客园
首页
新随笔
联系
订阅
管理
2024年1月3日
解决跨域问题
摘要: registry.addMapping("/**") //配置任何域名都可以访问 .allowedOriginPatterns("*") //许跨域的任何请求方法 .allowedMethods("*") //允许发送cookie .allowCredentials(true) //允许最大得到响应
阅读全文
posted @ 2024-01-03 10:53 方毅
阅读(14)
评论(0)
推荐(0)
2023年12月19日
springboot 代码生成器
摘要: package com.itfangyi;import com.baomidou.mybatisplus.generator.FastAutoGenerator;import com.baomidou.mybatisplus.generator.config.OutputFile;import co
阅读全文
posted @ 2023-12-19 10:46 方毅
阅读(43)
评论(0)
推荐(0)
2023年12月18日
springboot 连接工具
摘要: ### 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 方毅
阅读(14)
评论(0)
推荐(0)
2023年12月12日
springboot-result
摘要: 配置响应公共代码和消息 SUCCESS(200,"成功"),FAIL(201, "失败"),PARAM_ERROR(203, "参数错误"),DATA_ERROR(204, "数据异常"),ILLEGAL_REQUEST(205, "非法请求"),REPEAT_SUBMIT(206, "重复提交")
阅读全文
posted @ 2023-12-12 17:26 方毅
阅读(67)
评论(0)
推荐(0)
2023年11月10日
文件上传-code
摘要: 1.导入上传文件gav坐标 <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload --> <dependency> <groupId>commons-fileupload</groupId> <ar
阅读全文
posted @ 2023-11-10 15:56 方毅
阅读(13)
评论(0)
推荐(0)
springboot 单文件上传
摘要: // 获取文件名称String originalFilename = multipartFile.getOriginalFilename();// 获取文件的后缀名String substring = originalFilename.substring(originalFilename.lastI
阅读全文
posted @ 2023-11-10 14:19 方毅
阅读(14)
评论(0)
推荐(0)
公告