摘要: npm install axios http.js import axios from 'axios' // 引入axios // 响应拦截器 // 响应拦截器 axios.interceptors.response.use( response => { console.log(response) 阅读全文
posted @ 2021-10-10 22:02 陈扬天 阅读(93) 评论(0) 推荐(0)
摘要: server: port: 8081 #端口号 servlet: context-path: / #项目访问路径 spring: thymeleaf: prefix: classpath:/templates/ suffix: .html encoding: UTF-8 mode: LEGACYHT 阅读全文
posted @ 2021-10-10 19:40 陈扬天 阅读(191) 评论(0) 推荐(0)
摘要: package com.fwz.homework.cfg; import org.springframework.boot.SpringBootConfiguration; import org.springframework.web.servlet.config.annotation.CorsRe 阅读全文
posted @ 2021-10-10 19:39 陈扬天 阅读(583) 评论(0) 推荐(0)
摘要: 百度的图片上传插件功能强大,但是整合到自己的项目还是有些不能满足需求,只能自己一点点修改。 成品如下: 上传成功后图片回显 图片预览 如果超过自定义上传数量,会有提示 以下是相关demo <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtm 阅读全文
posted @ 2021-10-10 10:48 陈扬天 阅读(284) 评论(0) 推荐(0)