Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
57490fa7
Commit
57490fa7
authored
Apr 08, 2020
by
Simon Cheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持tomcat发布
parent
15e7ac5b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
7 deletions
+28
-7
yd-api/.classpath
+1
-0
yd-api/.project
+3
-2
yd-api/pom.xml
+8
-0
yd-api/src/main/java/com/yd/Application.java
+10
-2
yd-api/src/main/resources/application.properties
+6
-3
No files found.
yd-api/.classpath
View file @
57490fa7
...
...
@@ -25,6 +25,7 @@
<classpathentry
kind=
"con"
path=
"org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"
>
<attributes>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
<attribute
name=
"org.eclipse.jst.component.dependency"
value=
"/WEB-INF/lib"
/>
</attributes>
</classpathentry>
<classpathentry
combineaccessrules=
"false"
kind=
"src"
path=
"/pagehelper"
/>
...
...
yd-api/.project
View file @
57490fa7
...
...
@@ -21,12 +21,12 @@
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.
m2e.core.maven2B
uilder
</name>
<name>
org.eclipse.
wst.validation.validationb
uilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.
wst.validation.validationb
uilder
</name>
<name>
org.eclipse.
m2e.core.maven2B
uilder
</name>
<arguments>
</arguments>
</buildCommand>
...
...
@@ -38,5 +38,6 @@
<nature>
org.eclipse.jdt.core.javanature
</nature>
<nature>
org.eclipse.m2e.core.maven2Nature
</nature>
<nature>
org.eclipse.wst.common.project.facet.core.nature
</nature>
<nature>
org.eclipse.wst.jsdt.core.jsNature
</nature>
</natures>
</projectDescription>
yd-api/pom.xml
View file @
57490fa7
...
...
@@ -22,6 +22,9 @@
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
<!-- 编译时的编码 -->
<maven.compiler.encoding>
UTF-8
</maven.compiler.encoding>
</properties>
<dependencies>
...
...
@@ -72,6 +75,11 @@
<version>
0.6.0
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.apache.tomcat.embed
</groupId>
<artifactId>
tomcat-embed-jasper
</artifactId>
<scope>
provided
</scope>
...
...
yd-api/src/main/java/com/yd/Application.java
View file @
57490fa7
...
...
@@ -4,8 +4,11 @@ import java.util.Properties;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.domain.EntityScan
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
import
org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.support.SpringBootServletInitializer
;
import
org.springframework.context.annotation.Bean
;
import
com.github.pagehelper.PageHelper
;
...
...
@@ -14,10 +17,15 @@ import com.github.pagehelper.PageHelper;
* Application
*
*/
@EntityScan
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
,
HibernateJpaAutoConfiguration
.
class
})
public
class
Application
public
class
Application
extends
SpringBootServletInitializer
{
@Override
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
return
application
.
sources
(
Application
.
class
);
}
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Application
.
class
,
args
);
...
...
yd-api/src/main/resources/application.properties
View file @
57490fa7
spring.profiles.active
=
local
spring.profiles.active
=
dev
spring.session.store-type
=
none
spring.http.multipart.maxFileSize
=
10Mb
spring.http.multipart.maxRequestSize
=
100Mb
...
...
@@ -9,4 +9,7 @@ spring.http.multipart.maxRequestSize=100Mb
#server.tomcat.uri-encoding=GBK
spring.messages.basename
=
i18n/messages
spring.messages.encoding
=
UTF-8
\ No newline at end of file
spring.messages.encoding
=
UTF-8
spring.jmx.enabled
=
false
spring.jmx.default-domain
=
ydapi
\ No newline at end of file
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