diff --git a/src/main/java/com/fjy/spring/controller/DataController.java b/src/main/java/com/fjy/spring/controller/DataController.java index 8191b5d..0acfd1b 100644 --- a/src/main/java/com/fjy/spring/controller/DataController.java +++ b/src/main/java/com/fjy/spring/controller/DataController.java @@ -5,7 +5,6 @@ import com.fjy.spring.enums.ResultEnum; import com.fjy.spring.exception.UserException; import com.fjy.spring.service.*; import com.fjy.spring.untils.CodingUtil; -import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -18,7 +17,6 @@ import java.util.*; import static com.fjy.spring.constant.GlobalConstant.USER_SESSION_KEY; @RestController -@Slf4j public class DataController { @Autowired @@ -134,7 +132,6 @@ public class DataController { */ @PostMapping("/home/adduserque") public boolean adduserque(TbUserque userque)throws Exception{ - log.info(userque.toString()); //对密保问题加密存储 userque.setAnswer(new BigInteger(CodingUtil.encryptSHA(userque.getAnswer().getBytes())).toString(32)); return userService.addUserQue(userque); @@ -205,7 +202,6 @@ public class DataController { @PostMapping("/home/admin/addoneversion") public boolean addOneVersion(TbVersion version){ - //log.info(version.toString()); return versionService.addOneVersion(version)!=null; } diff --git a/src/main/java/com/fjy/spring/interceptor/AdminInterceptor.java b/src/main/java/com/fjy/spring/interceptor/AdminInterceptor.java index 5a0269c..17ffbda 100644 --- a/src/main/java/com/fjy/spring/interceptor/AdminInterceptor.java +++ b/src/main/java/com/fjy/spring/interceptor/AdminInterceptor.java @@ -23,7 +23,7 @@ public class AdminInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { TbUser user = (TbUser)request.getSession().getAttribute(GlobalConstant.USER_SESSION_KEY); - log.info(user.getColuserid()+""); + //log.info(user.getColuserid()+""); if (adminService == null) {//解决service为null无法注入问题 BeanFactory factory = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getServletContext()); adminService = (AdminService) factory.getBean("adminService"); diff --git a/src/main/resources/templates/home/about.html b/src/main/resources/templates/home/about.html index 8f670b4..8fb4bb3 100644 --- a/src/main/resources/templates/home/about.html +++ b/src/main/resources/templates/home/about.html @@ -52,10 +52,10 @@ diff --git a/src/main/resources/templates/home/admin.html b/src/main/resources/templates/home/admin.html index fa72c09..5d7a7e3 100644 --- a/src/main/resources/templates/home/admin.html +++ b/src/main/resources/templates/home/admin.html @@ -30,7 +30,7 @@ @click="submitUpload"> 上传到服务器 - +
上传文件大小不能超过100Mb
diff --git a/src/main/resources/templates/home/home.html b/src/main/resources/templates/home/home.html index 0e5ca05..d1d1f1c 100644 --- a/src/main/resources/templates/home/home.html +++ b/src/main/resources/templates/home/home.html @@ -135,7 +135,7 @@ @click="submitUpload"> 上传到服务器 - +
上传文件大小不能超过100Mb
diff --git a/src/main/resources/templates/moreUpload.html b/src/main/resources/templates/home/moreUpload.html similarity index 100% rename from src/main/resources/templates/moreUpload.html rename to src/main/resources/templates/home/moreUpload.html