Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
0f2fca0e
Commit
0f2fca0e
authored
Apr 21, 2018
by
Junling Bu
Browse files
new[litemall-all]: war格式项目包,包含三个后台服务和静态文件。
parent
eab1a88b
Changes
7
Hide whitespace changes
Inline
Side-by-side
litemall-all/.gitignore
0 → 100644
View file @
0f2fca0e
/target/
/litemall-all.iml
litemall-all/pom.xml
0 → 100644
View file @
0f2fca0e
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.linlinjava
</groupId>
<artifactId>
litemall-all
</artifactId>
<version>
0.1.0
</version>
<packaging>
war
</packaging>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
1.5.10.RELEASE
</version>
<relativePath/>
</parent>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<java.version>
1.8
</java.version>
<maven.test.skip>
true
</maven.test.skip>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.linlinjava
</groupId>
<artifactId>
litemall-core
</artifactId>
<version>
0.1.0
</version>
</dependency>
<dependency>
<groupId>
org.linlinjava
</groupId>
<artifactId>
litemall-db
</artifactId>
<version>
0.1.0
</version>
</dependency>
<dependency>
<groupId>
org.linlinjava
</groupId>
<artifactId>
litemall-os-api
</artifactId>
<version>
0.1.0
</version>
</dependency>
<dependency>
<groupId>
org.linlinjava
</groupId>
<artifactId>
litemall-wx-api
</artifactId>
<version>
0.1.0
</version>
</dependency>
<dependency>
<groupId>
org.linlinjava
</groupId>
<artifactId>
litemall-admin-api
</artifactId>
<version>
0.1.0
</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<executions>
<execution>
<id>
copy-resources
</id>
<phase>
validate
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<outputDirectory>
${basedir}/target/classes/static
</outputDirectory>
<resources>
<resource>
<directory>
../litemall-admin/dist
</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
litemall-all/src/main/java/org/linlinjava/litemall/Application.java
0 → 100644
View file @
0f2fca0e
package
org.linlinjava.litemall
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.support.SpringBootServletInitializer
;
@SpringBootApplication
(
scanBasePackages
=
{
"org.linlinjava.litemall"
,
"org.linlinjava.litemall.core"
,
"org.linlinjava.litemall.db"
,
"org.linlinjava.litemall.os"
,
"org.linlinjava.litemall.wx"
,
"org.linlinjava.litemall.admin"
})
@MapperScan
(
"org.linlinjava.litemall.db.dao"
)
public
class
Application
extends
SpringBootServletInitializer
{
@Override
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
return
application
.
sources
(
Application
.
class
);
}
public
static
void
main
(
String
[]
args
)
throws
Exception
{
SpringApplication
.
run
(
Application
.
class
,
args
);
}
}
\ No newline at end of file
litemall-all/src/main/resources/application-dev.properties
0 → 100644
View file @
0f2fca0e
pagehelper.helperDialect
=
mysql
pagehelper.reasonable
=
true
pagehelper.supportMethodsArguments
=
true
pagehelper.params
=
count=countSql
spring.datasource.druid.url
=
jdbc:mysql://localhost:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&verifyServerCertificate=false&useSSL=false
spring.datasource.druid.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.druid.username
=
litemall
spring.datasource.druid.password
=
litemall123456
spring.datasource.druid.initial-size
=
50
spring.datasource.druid.max-active
=
100
spring.datasource.druid.min-idle
=
20
spring.datasource.druid.max-wait
=
60000
spring.datasource.druid.pool-prepared-statements
=
true
spring.datasource.druid.max-pool-prepared-statement-per-connection-size
=
20
spring.datasource.druid.validation-query
=
SELECT 1 FROM DUAL
spring.datasource.druid.test-on-borrow
=
false
spring.datasource.druid.test-on-return
=
false
spring.datasource.druid.test-while-idle
=
true
spring.datasource.druid.time-between-eviction-runs-millis
=
60000
spring.datasource.druid.filters
=
stat,wall,log4j
logging.level.root
=
ERROR
logging.level.org.springframework
=
ERROR
logging.level.org.mybatis
=
ERROR
logging.level.org.linlinjava.litemall
=
DEBUG
litemall-all/src/main/resources/application-prod.properties
0 → 100644
View file @
0f2fca0e
pagehelper.helperDialect
=
mysql
pagehelper.reasonable
=
true
pagehelper.supportMethodsArguments
=
true
pagehelper.params
=
count=countSql
spring.datasource.druid.url
=
jdbc:mysql://localhost:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&verifyServerCertificate=false&useSSL=false
spring.datasource.druid.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.druid.username
=
litemall
spring.datasource.druid.password
=
litemall123456
spring.datasource.druid.initial-size
=
50
spring.datasource.druid.max-active
=
100
spring.datasource.druid.min-idle
=
20
spring.datasource.druid.max-wait
=
60000
spring.datasource.druid.pool-prepared-statements
=
true
spring.datasource.druid.max-pool-prepared-statement-per-connection-size
=
20
spring.datasource.druid.validation-query
=
SELECT 1 FROM DUAL
spring.datasource.druid.test-on-borrow
=
false
spring.datasource.druid.test-on-return
=
false
spring.datasource.druid.test-while-idle
=
true
spring.datasource.druid.time-between-eviction-runs-millis
=
60000
spring.datasource.druid.filters
=
stat,wall,log4j
logging.level.root
=
ERROR
logging.level.org.springframework
=
ERROR
logging.level.org.mybatis
=
ERROR
logging.level.org.linlinjava.litemall
=
ERROR
\ No newline at end of file
litemall-all/src/main/resources/application.properties
0 → 100644
View file @
0f2fca0e
spring.profiles.active
=
prod
server.port
=
8080
\ No newline at end of file
pom.xml
View file @
0f2fca0e
...
...
@@ -12,6 +12,7 @@
<module>
litemall-os-api
</module>
<module>
litemall-wx-api
</module>
<module>
litemall-admin-api
</module>
<module>
litemall-all
</module>
</modules>
...
...
Write
Preview
Supports
Markdown
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