摘要: import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.con 阅读全文
posted @ 2022-06-02 11:57 Anhk丶 阅读(301) 评论(0) 推荐(0)
摘要: 在文本内容指定位置添加 \r 换行符 textarea中的换行符为\r,html中的换行符为 </br> String str = "abc\r"; 设置水平滚动条 <!-- wrap="off"设置水平滚动条(除非遇到换行符,不然内容一直向右延伸) --> <!-- style="resize:n 阅读全文
posted @ 2022-06-02 11:55 Anhk丶 阅读(62) 评论(0) 推荐(0)
摘要: public ResultVo viewLog(String taskId) { StringBuilder stringBuilder = new StringBuilder(); FileInputStream fileInputStream = null; InputStreamReader 阅读全文
posted @ 2022-06-02 11:53 Anhk丶 阅读(97) 评论(0) 推荐(0)
摘要: public ResultVo uploadPackage(@RequestBody MultipartFile file) { //非空校验 if (file == null) { return ResultVo.error("上传文件不能为空"); } //获取文件名称 String filen 阅读全文
posted @ 2022-06-02 11:52 Anhk丶 阅读(105) 评论(0) 推荐(0)
摘要: HTML <a class="btn btn-primary" @click="viewImg">查看图片</a> <div id="viewUserImg"> <img id="userImg" :src="imgUrl"> <!--<img id="userImg" src="${request 阅读全文
posted @ 2022-06-02 11:50 Anhk丶 阅读(193) 评论(0) 推荐(0)
摘要: springboot项目需要先做一个初始化操作,不然会抛异常 @SpringBootApplication public class HttpApplication { public static void main(String[] args) { // 解决 java.awt.HeadlessE 阅读全文
posted @ 2022-06-02 11:43 Anhk丶 阅读(213) 评论(0) 推荐(0)
摘要: Vue前端代码 function downloadFile(fileId, fileName) { window.open("/downloadFile?fileId=?&fileName=" + encodeURI(fileName)); } 后台代码 import org.springframe 阅读全文
posted @ 2022-06-02 11:29 Anhk丶 阅读(476) 评论(0) 推荐(0)