
SpringBoot
文章平均质量分 81
迷途中的小码农
既然选择了远方,便只顾风雨兼程
展开
-
springboot上传单个文件,多个文件以及文件和表单数据同时提交
一直有小伙伴不知道springboot项目的文件上传功能,今天我们就来搞懂它,读完本篇文章你可以知道以下内容单个文件上传多个文件上传文件与form表单普通属性同时提交通过ajax提交form表单(含文件上传 )首先来看前端html,一个页面中同时实现了ajax方式提交表单(含附件)以及通过submit方式进行表单提交(带附件)<!DOCTYPE html><html lang="zh" xmlns:th="http://www.thymeleaf.org"><原创 2020-06-10 22:52:05 · 7200 阅读 · 4 评论 -
springboot2.x版本多模块下访问jsp文件404
原因:idea多模块时默认的工作路径是父模块解决方法:将working directory改为MODULEDIRMODULE_DIRMODULEDIR然后就可以正常访问啦!原创 2020-06-07 13:28:33 · 321 阅读 · 0 评论 -
springboot项目通过修改端口生成多个实例
打开项目设置将Single Instance only前面方框中的√去掉,重新修改端口启动就会启动多个springboot实例啦,是不是很简单?原创 2020-04-27 17:26:40 · 384 阅读 · 0 评论 -
Maven之阿里云镜像仓库配置
方式一:全局配置可以添加阿里云的镜像到maven的setting.xml配置中,这样就不需要每次在pom中,添加镜像仓库的配置,在mirrors节点下面添加子节点:<id>nexus-aliyun</id><mirrorOf>central</mirrorOf><name>Nexus aliyun</name>&...原创 2020-04-17 13:22:41 · 771 阅读 · 0 评论 -
SpringBoot-SpringCloud-版本对应关系
SpringBoot与SpringCloud版本对应SpringCloud Spring Boot Version Hoxton 2.2.x Greenwich 2.1.x Finchley 2.0.x Edgware 1.5.x...原创 2020-04-06 13:28:45 · 1566 阅读 · 0 评论 -
idea使用springboot框架,autowired注解注入对象时有红色波浪线
扫一扫关注我的公众号哟!转载 2019-08-06 10:59:06 · 1474 阅读 · 0 评论 -
springboot上传附件报错Failed to convert value of type
上传附件报错Failed to convert value of type ‘org.springframework.web.multipart.support.StandardMultipartHttpServletRequestStandardMultipartFile′torequiredtype′org.springframework.web.multipart.commons.Comm...原创 2019-04-13 15:44:57 · 11675 阅读 · 3 评论 -
使用springboot上传附件
在pom.xml中添加上传附件依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency><dependency> &l...原创 2019-04-13 15:37:15 · 2077 阅读 · 0 评论 -
springboot2整合OAuth2.0认证实例
https://blog.youkuaiyun.com/haoxiaoyong1014/article/details/80795574转载 2018-08-17 15:49:41 · 2228 阅读 · 0 评论 -
Eclipse创建SpringBoot工程
首先下载Spring支持插件右键新建工程,找到spring boot,双击选择springboot版本,2.0.2然后选择web点击完成等待创建.目录结构如下package com.example.demo;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure....原创 2018-06-02 11:52:03 · 1083 阅读 · 0 评论 -
springboot批处理实例报错FlatFileParseException Parsing error - Spring Batch
2018-06-21 22:30:30.528 ERROR 6992 --- [ restartedMain] o.s.batch.core.step.AbstractStep : Encountered an error executing step step1 in job importUserJoborg.springframework.batch.item.file.Fl...原创 2018-06-21 22:32:22 · 4039 阅读 · 0 评论 -
WebMvcConfigurerAdapter的替换接口或类
WebMvcConfigurerAdapter已经过时,在新版本中被废弃以下WebMvcConfigurerAdapter 比较常用的重写接口/** 解决跨域问题 **/public void addCorsMappings(CorsRegistry registry) ;/** 添加拦截器 **/void addInterceptors(InterceptorRegistry regist...转载 2018-06-21 15:06:16 · 15031 阅读 · 0 评论 -
Mybatis使用generateor逆向生成工程,保存时报错Caused by: java.lang.NoSuchMethodException: tk.mybatis.mapper.provide
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error invoking SqlProvider method (tk.mybatis.mapper.provider.base.BaseInsertProvider.dynamic...原创 2018-06-21 09:08:42 · 1740 阅读 · 0 评论