管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-30 e5d341086b634f9ac0345b576e6497f978a53941
1
已修改6个文件
63 ■■■■ 文件已修改
pom.xml 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/LfApplication.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/data/MetaController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/helper/RsaHelper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/all/CommonsFileuploadService.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
说明.txt 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -9,6 +9,8 @@
        <version>2.3.6.RELEASE</version>
        <relativePath/>
    </parent>
    <!--打包成war-->
    <packaging>war</packaging>
    <groupId>com.lf</groupId>
    <artifactId>server</artifactId>
@@ -27,6 +29,19 @@
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <!--排除内置tomcat容器,让外部容器运行spring-boot项目-->
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-tomcat</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!--tomcat-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>provided</scope>
        </dependency>
        <!--<dependency>
            <groupId>org.springframework.boot</groupId>
@@ -214,9 +229,17 @@
            <artifactId>ucanaccess</artifactId>
            <version>5.0.1</version>
        </dependency>
        <!--war:servlet-->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <build>
        <finalName>lfserver</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
src/main/java/com/lf/server/LfApplication.java
@@ -2,17 +2,26 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
 * Land应用程序
 * @author WWW
 * æŽ’除Security:, exclude = {SecurityAutoConfiguration.class, SecurityFilterAutoConfiguration.class}
 *
 * jar -> war:继承 SpringBootServletInitializer,实现 configure å‡½æ•°
 */
@EnableSwagger2
@SpringBootApplication(scanBasePackages = {"com.lf.server.*"})
public class LfApplication {
public class LfApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(LfApplication.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder springApplicationBuilder) {
        return springApplicationBuilder.sources(LfApplication.class);
    }
}
src/main/java/com/lf/server/controller/data/MetaController.java
@@ -43,6 +43,8 @@
    @Autowired
    DownloadService downloadService;
    private final static String EQ = "=";
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
@@ -310,7 +312,7 @@
            if (StringHelper.isEmpty(guid) || StringHelper.isEmpty(pwd)) {
                return fail("文件ID和密码不能为空", null);
            }
            if (!pwd.endsWith("=")) {
            if (!pwd.endsWith(EQ)) {
                pwd = URLDecoder.decode(pwd, StandardCharsets.UTF_8.name());
            }
@@ -349,7 +351,7 @@
            if (StringHelper.isEmpty(guid) || StringHelper.isEmpty(pwd)) {
                WebHelper.writeInfo(HttpStatus.BAD_REQUEST, "文件ID和密码不能为空", res);
            }
            if (!pwd.endsWith("=")) {
            if (!pwd.endsWith(EQ)) {
                pwd = URLDecoder.decode(pwd, StandardCharsets.UTF_8.name());
            }
src/main/java/com/lf/server/helper/RsaHelper.java
@@ -1,6 +1,6 @@
package com.lf.server.helper;
import org.apache.tomcat.util.codec.binary.Base64;
import org.apache.commons.codec.binary.Base64;
import org.springframework.core.io.ClassPathResource;
import javax.crypto.Cipher;
src/main/java/com/lf/server/service/all/CommonsFileuploadService.java
@@ -1,15 +1,14 @@
package com.lf.server.service.all;
import com.lf.server.entity.ctrl.FileInfoEntity;
import com.lf.server.entity.sys.UserEntity;
import com.lf.server.helper.PathHelper;
import com.lf.server.helper.StringHelper;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.commons.fileupload.servlet.ServletRequestContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.tomcat.util.http.fileupload.FileItem;
import org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory;
import org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload;
import org.apache.tomcat.util.http.fileupload.servlet.ServletRequestContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
˵Ã÷.txt
@@ -63,7 +63,17 @@
.开发上传shp文件转换为JSON数据接口
.开发读取Excel表格功能
.开发根据实体名称动态读取Excel功能
.
E:\terrait\TianJin\Zip\release-1928-x64-dev\release-1928-x64\bin
<property key="layers" value="USA Population,高德影像注记,高德影像"/>
  <property key="imgPath" value="E:/terrait/TianJin/ExportMap/ExportMap/Sources/geo.png"/>
链接:https://pan.baidu.com/s/1H2G34m8vIZkfeoKghEtegg?pwd=vlie
提取码:vlie
链接:https://pan.baidu.com/s/10mW7dCJiBwgx5eBQy137EA
提取码:3mwj
----------------------------------------------------------------------------------------------------
@TableField(value = "class")
private String clazz;