• 大小: 15.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-19
  • 语言: 其他
  • 标签: 其他  

资源简介

BookManageSystem.rar

资源截图

代码片段和文件信息

package com.java456.controller;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.UUID;
import javax.annotation.Resource;
import javax.naming.spi.objectFactoryBuilder;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.io.FileUtils;
import org.apache.shiro.SecurityUtils;
import org.aspectj.apache.bcel.classfile.Constant;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.converter.json.MappingJacksonValue;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.java456.entity.Config;
import com.java456.entity.Result;
import com.java456.entity.Tree;
import com.java456.entity.User;
import com.java456.http.HttpClient;
import com.java456.service.ConfigService;
import com.java456.service.PublicService;
import com.java456.service.TreeService;
import com.java456.service.UserService;
import com.java456.util.DateUtil;
import com.java456.util.MyUtil;
import com.java456.util.ResponseUtil;
import com.java456.util.StringUtil;
import com.java456.util.xmlUtil;
import com.mysql.fabric.xmlrpc.base.Data;
import net.sf.json.JSONArray;
import net.sf.json.JSONobject;

/**
 * 主页Contrller
 * 版本 2.10 更新 上去
 */

@Controller
@RequestMapping(“/“)
public class IndexContrller {

@Resource
private TreeService treeService;
@Resource
private PublicService publicService;


/**
 * 请求主页
 */
@RequestMapping(“/index“)
public ModelAndView index(HttpServletResponse  resHttpServletRequest req) throws Exception {
ModelAndView mav = new ModelAndView();

String UserAgent = req.getHeader(“User-Agent“);
//判断AppleWebKit 和  Firefox

if(MyUtil.checkUserAgent(UserAgent)){
mav.setViewName(“/pc/login/login“);
}else{
mav.setViewName(“/admin/common/s_mode“);
}

System.out.println(“【UserAgent】【】【】【】】【“+UserAgent);
return mav;
}


/**
 * 电脑登陆
 */
@RequestMapping(“/login“)
public ModelAndView login(HttpServletResponse  resHttpServletRequest req) throws Exception {
ModelAndView mav = new ModelAndVie

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1391  2018-04-22 10:44  BookManageSystem\.classpath

     文件       1225  2018-06-21 21:58  BookManageSystem\.project

     文件        639  2018-04-22 10:45  BookManageSystem\.settings\.jsdtscope

     文件        430  2018-04-22 10:45  BookManageSystem\.settings\org.eclipse.jdt.core.prefs

     文件         90  2018-04-22 10:45  BookManageSystem\.settings\org.eclipse.m2e.core.prefs

     文件        749  2018-04-22 10:45  BookManageSystem\.settings\org.eclipse.wst.common.component

     文件        252  2018-04-22 10:45  BookManageSystem\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-04-22 10:45  BookManageSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-04-22 10:45  BookManageSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件         50  2018-04-22 10:45  BookManageSystem\.settings\org.eclipse.wst.validation.prefs

     文件          2  2018-04-22 10:44  BookManageSystem\.svn\entries

     文件          2  2018-04-22 10:44  BookManageSystem\.svn\format

     文件       2905  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\002665d49059d62990ba2ebf834d4ecf0189a38f.svn-base

     文件       5541  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\003388bc885ec19e4d4b241e8a4c44e4210c2e02.svn-base

     文件        903  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\00448dfff9a135d426547b6d55f89695fac90385.svn-base

     文件       1032  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\007ca4d93d393a3a7c90d76a5920e7ff70c4515b.svn-base

     文件        191  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\007d2527690783a878e3ec76cce9ac7fc88d3fe7.svn-base

     文件       1128  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\0085482f4a9d17ec726e91da8ea664a844e88eec.svn-base

     文件       1153  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\00aebdb5d0074e36a09922e6bda84128a4ef53ea.svn-base

     文件       4212  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\00b1bc2e37700761792cedee59e489d77306a74c.svn-base

     文件       2508  2018-04-22 10:44  BookManageSystem\.svn\pristine\00\00fe3a3049493919d52570956753d597fdb17dd7.svn-base

     文件      47084  2018-04-22 10:44  BookManageSystem\.svn\pristine\01\010af259088eac7b993de13e3e83c2365fe9beab.svn-base

     文件        716  2018-04-22 10:44  BookManageSystem\.svn\pristine\01\012984c34092c44cc0540e2b881394662236428e.svn-base

     文件        244  2018-04-22 10:44  BookManageSystem\.svn\pristine\01\0146248c0358eaae6a002fc7ad492483b60ff503.svn-base

     文件      12613  2018-04-22 10:44  BookManageSystem\.svn\pristine\01\016d9374beca1f7e09b4d59f9aa608a5a2642523.svn-base

     文件       1986  2018-04-22 10:44  BookManageSystem\.svn\pristine\01\016fb5a98c6ffac8252316994dbd805ec25c9892.svn-base

     文件       2416  2018-04-22 10:44  BookManageSystem\.svn\pristine\01\01f873c248464ff6134ff0a3dceae4a03ec7816d.svn-base

     文件       1279  2018-04-22 10:44  BookManageSystem\.svn\pristine\02\021cab097bbd739ad455453af433f0a3a7210b8d.svn-base

     文件       3914  2018-04-22 10:45  BookManageSystem\.svn\pristine\02\023ebba94716874ac724a77cdbb79fe766e486fb.svn-base

     文件       1609  2018-04-22 10:44  BookManageSystem\.svn\pristine\02\0240f5850e4490cace11e10374fc1a9d7ff58498.svn-base

............此处省略3632个文件信息

评论

共有 条评论