![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后端
zhaofengart
这个作者很懒,什么都没留下…
展开
-
iview upload上传文件
前端代码<Upload ref="upload" type="drag" multiple :show-upload-list="true" :before-upload="handleUpload" :data="uploadFile" :on-success="uploadSuccess" action="/api/company/upload"> 选择...原创 2019-12-19 18:28:21 · 4264 阅读 · 0 评论 -
SpringBoot项目打成jar包后无法读取到resource下的文件
错误信息:找不到指定的文件java.io.FileNotFoundException: sample.docx (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at jav...原创 2020-03-13 09:14:54 · 2244 阅读 · 3 评论 -
springboot下载文件抛异常
一个下载文件的方法,每次文件都能成功下载,但控制台总会报错:java.lang.IllegalStateException: Cannot call sendError() after the response has been committedorg.springframework.http.converter.HttpMessageNotWritableException: No co...原创 2019-12-09 10:29:24 · 17265 阅读 · 6 评论 -
Postman URL地址不能包含中文
点击Pre-request Script标签, 添加一个全局变量,如图参考文章Postman URL地址不能包含中文的问题原创 2019-12-13 17:48:41 · 254 阅读 · 0 评论 -
Swagger-UI 提示Unable to infer base url.
Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e...转载 2019-11-05 10:27:27 · 440 阅读 · 0 评论 -
expected START_TAG or END_TAG not TEXT
依赖标签外多了一个字母原创 2019-11-04 09:57:06 · 378 阅读 · 0 评论 -
Django入门
安装The latest official version is 2.2.6 (LTS). Read the 2.2.6 release notes, then install it with pip:pip install Django==2.2.6项目演练新建项目django-admin startproject <项目名>新建项目mysite的内容配置在my...原创 2019-11-01 09:08:55 · 94 阅读 · 0 评论 -
Mock无法测试使用了Example的service
tk.mybatis.mapper.MapperException: 无法获取实体类com.analysys.ciis.entity.BaseCompanyInfoPool对应的表名!对测试类使用以下注解@RunWith(SpringJUnit4ClassRunner.class)@SpringBootTest初始化函数代码 @Before public void set...原创 2019-08-19 10:47:59 · 1088 阅读 · 1 评论 -
sql日期查询错误
错误信息### Error querying database. Cause: java.lang.IllegalArgumentException: invalid comparison: java.util.Date and java.lang.String### Cause: java.lang.IllegalArgumentException: invalid comparison:...原创 2019-08-19 10:59:36 · 736 阅读 · 0 评论 -
MyBatis使用别名
配置application.ymlmybatis: mapper-locations: classpath:/mybatis/mapper/*.xml type-aliases-package: com.zhaofeng.deliverymanagement.pojo configuration: map-underscore-to-camel-case: true...原创 2019-08-19 17:34:21 · 421 阅读 · 0 评论 -
IDEA使用MyBatis Generator
添加mybatis-generator插件<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugi...原创 2019-08-19 17:56:14 · 773 阅读 · 0 评论 -
log4j无法打印日志
添加依赖 <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.9.1</version> <...原创 2019-08-24 10:38:36 · 1218 阅读 · 0 评论 -
非注解方式读取配置文件到配置类
引入依赖 <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>2.11.0</version></dependency><depe...原创 2019-08-22 10:40:07 · 664 阅读 · 0 评论 -
Linux下部署springboot项目
以下命令执行环境为 CentOS74生成jar包mvn clean install -Dmaven.test.skip=true上传文件[root@localhost ~]# rz在文件选择对话框中选择生成的jar包即可运行[root@localhost ~]# nohup java -jar deliverymanagement-0.0.1-SNAPSHOT.jar &...原创 2019-11-01 09:09:24 · 234 阅读 · 0 评论 -
@NotBlank注解不起作用
No validator could be found for constraint ‘javax.validation.constraints.NotBlank’ validating type ‘java.lang.String’. Check configuration for ‘oldPassword’"添加以下两个依赖,缺一不可 <dependency> <gr...原创 2019-08-19 10:25:49 · 10114 阅读 · 5 评论