前端
HTML
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<meta charset="UTF-8">
<title>uploadGoods</title>
<link rel="stylesheet" th:href="@{/layui/css/layui.css}">
<link rel="stylesheet" th:href="@{/css/uploadGoods.css}">
<script th:src="@{/js/jquery-3.5.1.js}"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
<div th:replace="common/com :: header"></div>
<div th:replace="common/com :: side"></div>
<div class="layui-body">
<div style="padding: 15px;">
<div class="layui-col-md10 layui-col-md-offset1">
<form class="layui-form" th:action="@{/user/upload.do}" method="post">
<div class="layui-col-md3 bor">
<div