springboot迁移

This commit is contained in:
datagear 2020-11-04 20:26:07 +08:00
parent dcb9871385
commit 159dc09d55
6 changed files with 13 additions and 45 deletions

View File

@ -50,7 +50,7 @@
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.0.1</version>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>

View File

@ -31,12 +31,12 @@
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.3.1</version>
<version>${mybatis.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.3.1</version>
<version>${mybatis-spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>

View File

@ -93,7 +93,7 @@
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.3</version>
<version>${commons-fileupload.version}</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>

View File

@ -751,20 +751,20 @@ public abstract class AbstractController
*/
protected String resolvePathAfter(HttpServletRequest request, String pathPrefix)
{
String pathInfo = request.getPathInfo();
String uri = request.getRequestURI();
if (StringUtil.isEmpty(pathPrefix))
return pathInfo;
return uri;
if (pathInfo.endsWith(pathPrefix))
if (uri.endsWith(pathPrefix))
return "";
int index = pathInfo.indexOf(pathPrefix);
int index = uri.indexOf(pathPrefix);
if (index < 0)
return null;
return pathInfo.substring(index + pathPrefix.length());
return uri.substring(index + pathPrefix.length());
}
/**

View File

@ -152,31 +152,6 @@ public abstract class AbstractDataAnalysisController extends AbstractController
return dashboardTheme;
}
/**
* 解析展示看板请求路径的看板资源名
* <p>
* 返回空字符串表情请求展示首页
* </p>
*
* @param request
* @param response
* @param id
* @return
*/
protected String resolveDashboardResName(HttpServletRequest request, HttpServletResponse response, String id)
{
String pathInfo = request.getPathInfo();
String idPath = id + "/";
if (pathInfo.endsWith(id) || pathInfo.endsWith(idPath))
return "";
String resPath = pathInfo.substring(pathInfo.indexOf(idPath) + idPath.length());
return resPath;
}
/**
* 获取看板数据
*

15
pom.xml
View File

@ -13,24 +13,17 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<junit.version>4.13.1</junit.version>
<hamcrest.version>2.2</hamcrest.version>
<springboot.version>2.3.5.RELEASE</springboot.version>
<spring.version>4.3.26.RELEASE</spring.version>
<spring.security.version>3.2.10.RELEASE</spring.security.version>
<DBCP.version>2.7.0</DBCP.version>
<slf4j.version>1.7.9</slf4j.version>
<slf4j-log4j12.version>1.7.9</slf4j-log4j12.version>
<log4j.version>1.2.17</log4j.version>
<javax.json.version>1.0.4</javax.json.version>
<guava.version>28.2-jre</guava.version>
<jackson.version>2.9.10.4</jackson.version>
<freemarker.version>2.3.30</freemarker.version>
<commons-csv.version>1.4</commons-csv.version>
<poi.version>3.17</poi.version>
<poi-ooxml.version>3.17</poi-ooxml.version>
<quartz.version>2.3.2</quartz.version>
<cometd.version>4.0.9</cometd.version>
<httpclient.version>5.0.1</httpclient.version>
<mybatis.version>3.3.1</mybatis.version>
<mybatis-spring.version>1.3.1</mybatis-spring.version>
<commons-fileupload.version>1.3.3</commons-fileupload.version>
<maven-antrun-plugin.version>1.4</maven-antrun-plugin.version>
</properties>