[Spring][쇼핑몰 프로젝트][24] 상품 이미지 업로드(준비작업)
https://kimvampa.tistory.com/211
This commit is contained in:
@@ -35,4 +35,7 @@
|
||||
</interceptor>
|
||||
</interceptors>
|
||||
|
||||
<!-- 업로드 관련 빈 -->
|
||||
<beans:bean id="multipartResolver" class="org.springframework.web.multipart.support.StandardServletMultipartResolver"></beans:bean>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
||||
version="3.1">
|
||||
|
||||
<!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
|
||||
<context-param>
|
||||
@@ -26,6 +26,15 @@
|
||||
</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
|
||||
<!-- 업로드 관련 설정 -->
|
||||
<multipart-config>
|
||||
<location>C:\\upload\\temp</location>
|
||||
<max-file-size>20971520</max-file-size> <!-- 1MB * 20 -->
|
||||
<max-request-size>41943040</max-request-size> <!-- 40MB -->
|
||||
<file-size-threshold>20971520</file-size-threshold> <!-- 20MB -->
|
||||
</multipart-config>
|
||||
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#Generated by Maven Integration for Eclipse
|
||||
#Mon Apr 26 22:35:37 KST 2021
|
||||
#Wed Apr 28 02:05:10 KST 2021
|
||||
m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project2\\VamPa
|
||||
m2e.projectName=VamPa
|
||||
groupId=com.vam
|
||||
|
||||
@@ -35,4 +35,7 @@
|
||||
</interceptor>
|
||||
</interceptors>
|
||||
|
||||
<!-- 업로드 관련 빈 -->
|
||||
<beans:bean id="multipartResolver" class="org.springframework.web.multipart.support.StandardServletMultipartResolver"></beans:bean>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
||||
version="3.1">
|
||||
|
||||
<!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
|
||||
<context-param>
|
||||
@@ -26,6 +26,15 @@
|
||||
</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
|
||||
<!-- 업로드 관련 설정 -->
|
||||
<multipart-config>
|
||||
<location>C:\\upload\\temp</location>
|
||||
<max-file-size>20971520</max-file-size> <!-- 1MB * 20 -->
|
||||
<max-request-size>41943040</max-request-size> <!-- 40MB -->
|
||||
<file-size-threshold>20971520</file-size-threshold> <!-- 20MB -->
|
||||
</multipart-config>
|
||||
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#Generated by Maven Integration for Eclipse
|
||||
#Mon Apr 26 22:35:57 KST 2021
|
||||
#Wed Apr 28 02:05:10 KST 2021
|
||||
m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project2\\VamPa_MySQL
|
||||
m2e.projectName=VamPa_MySQL
|
||||
groupId=com.vam
|
||||
|
||||
Reference in New Issue
Block a user