mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-01 10:21:26 +08:00
增加文件上传
This commit is contained in:
@@ -90,8 +90,18 @@
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<artifactId>hsweb-spring-boot-starter</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-undertow</artifactId>
|
||||
</dependency>
|
||||
<!--权限管理-->
|
||||
<dependency>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
@@ -100,9 +110,9 @@
|
||||
</dependency>
|
||||
<!--使用shiro实现权限控制-->
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.hswebframework.web</groupId>-->
|
||||
<!--<artifactId>hsweb-authorization-shiro</artifactId>-->
|
||||
<!--<version>${project.version}</version>-->
|
||||
<!--<groupId>org.hswebframework.web</groupId>-->
|
||||
<!--<artifactId>hsweb-authorization-shiro</artifactId>-->
|
||||
<!--<version>${project.version}</version>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<!--组织架构-->
|
||||
@@ -112,6 +122,12 @@
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
<artifactId>hsweb-system-file-starter</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--动态表单-->
|
||||
<dependency>
|
||||
<groupId>org.hswebframework.web</groupId>
|
||||
|
||||
@@ -89,10 +89,12 @@ public class SpringBootExample
|
||||
ServletResponse.class,
|
||||
InputStream.class,
|
||||
OutputStream.class,
|
||||
MultipartFile.class
|
||||
MultipartFile.class,
|
||||
MultipartFile[].class
|
||||
};
|
||||
return loggerInfo -> System.out.println("有请求啦:" + JSON.toJSONString(loggerInfo.toSimpleMap(obj -> {
|
||||
if (Stream.of(excludes).anyMatch(aClass -> aClass.isInstance(obj))) return obj.getClass().getName();
|
||||
if (Stream.of(excludes).anyMatch(aClass -> aClass.isInstance(obj)))
|
||||
return obj.getClass().getName();
|
||||
return JSON.toJSONString(obj);
|
||||
})));
|
||||
}
|
||||
@@ -120,7 +122,6 @@ public class SpringBootExample
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
UserService userService;
|
||||
@Autowired
|
||||
|
||||
@@ -10,6 +10,11 @@ spring:
|
||||
driver-class-name : org.h2.Driver
|
||||
cache:
|
||||
type: simple
|
||||
http:
|
||||
multipart:
|
||||
enabled: true
|
||||
max-file-size: 100Mb
|
||||
|
||||
hsweb:
|
||||
authorize:
|
||||
# filters:
|
||||
|
||||
Reference in New Issue
Block a user