Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
雷紫添
xzxt-api-report
Commits
28c68c45
Commit
28c68c45
authored
Sep 02, 2019
by
雷紫添
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉jsp依赖
parent
17632900
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
37 deletions
+10
-37
pom.xml
+0
-14
src/main/java/com/founder/controller/JccjController.java
+7
-16
src/main/java/com/founder/service/impl/RycjServiceImpl.java
+1
-1
src/main/java/com/founder/test.java
+1
-1
src/main/resources/application.yml
+0
-4
src/main/resources/mybatis/mapper/Rycj.xml
+1
-1
No files found.
pom.xml
View file @
28c68c45
...
...
@@ -37,21 +37,7 @@
</dependency>
<!-- servlet 依赖 -->
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
jstl
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.tomcat.embed
</groupId>
<artifactId>
tomcat-embed-jasper
</artifactId>
<scope>
provided
</scope>
</dependency>
<!-- 数据库驱动包 -->
<dependency>
<groupId>
org.oracle
</groupId>
...
...
src/main/java/com/founder/controller/JccjController.java
View file @
28c68c45
...
...
@@ -10,9 +10,7 @@ import com.founder.service.FaceService;
import
com.founder.service.JccjService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -24,26 +22,19 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
@Controller
@RequestMapping
(
"/jccj
"
)
@
Rest
Controller
@RequestMapping
(
value
=
"/jccj"
,
produces
=
"application/json; charset=utf-8
"
)
public
class
JccjController
{
@Autowired
private
JccjService
jccjService
;
@Re
questMapping
(
value
=
"/xxbs"
,
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
public
void
queryDatas
(
HttpServletResponse
response
,
HttpServletRequest
request
,
@RequestBody
Jccj
jccj
)
{
@Re
sponseBody
@PostMapping
(
"/xxbs"
)
public
Object
queryDatas
(
HttpServletRequest
request
,
@RequestBody
Jccj
jccj
)
{
//1.验证是否非法调用(1.ip受限访问.2.加锁防止重复提交.3.文件名)
Map
<
String
,
Object
>
res
=
new
HashMap
<>();
res
=
jccjService
.
res
(
jccj
);
response
.
setCharacterEncoding
(
"utf-8"
);
try
{
response
.
getWriter
().
write
(
JSON
.
toJSONString
(
res
));
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
return
res
;
}
...
...
src/main/java/com/founder/service/impl/RycjServiceImpl.java
View file @
28c68c45
...
...
@@ -66,7 +66,7 @@ public class RycjServiceImpl implements RycjService {
bool
=
true
;
}
}
catch
(
Exception
e
){
System
.
out
.
print
(
"增加失败"
);
System
.
out
.
print
(
"增加失败"
+
e
.
getMessage
()
);
}
return
bool
;
}
...
...
src/main/java/com/founder/test.java
View file @
28c68c45
...
...
@@ -29,7 +29,7 @@ public class test {
jccj
.
setXxsb_zip
(
encodedText
);
jccj
.
setTaskid
(
"JCXX-R1100000500002014070008"
);
jccj
.
setUser_id
(
"142728188997588823"
);
jccj
.
setUser_dept
(
"1400000000
00
"
);
jccj
.
setUser_dept
(
"1400000000"
);
jccj
.
setVersion
(
"1.00"
);
//发送,httpclient 包含zip包
JSONObject
jsonResult
=
JccjServiceImpl
.
requestByPost
(
"http://localhost/jccj/xxbs"
,
jccj
);
...
...
src/main/resources/application.yml
View file @
28c68c45
spring
:
profiles
:
active
:
dev
mvc
:
view
:
prefix
:
/WEB-INF/
suffix
:
.jsp
jackson
:
date-format
:
yyyy-MM-dd HH:mm:ss
time-zone
:
GMT+8
...
...
src/main/resources/mybatis/mapper/Rycj.xml
View file @
28c68c45
...
...
@@ -97,7 +97,7 @@
<if
test=
"status_code != null"
>
#{status_code},
</if>
<if
test=
"
version
== null"
>
<if
test=
"
status_code
== null"
>
NULL,
</if>
<if
test=
"status_message != null"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment