Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
曲欣亮
shop
Commits
8c7e404f
Commit
8c7e404f
authored
Feb 14, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
能运行的
parent
bc68ed65
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
104 deletions
+48
-104
pom.xml
pom.xml
+42
-99
ShopApplication.java
src/main/java/com/egolm/shop/ShopApplication.java
+6
-5
No files found.
pom.xml
View file @
8c7e404f
...
...
@@ -11,110 +11,26 @@
<start-class>
com.egolm.shop.ShopApplication
</start-class>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<maven.build.timestamp>
${maven.build.timestamp}
</maven.build.timestamp>
<maven.build.timestamp.format>
yyyy-MM-dd HH:mm:ss
</maven.build.timestamp.format>
</properties>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.1.0.RELEASE
</version>
<relativePath
/>
</parent>
<distributionManagement>
<repository>
<id>
user-releases
</id>
<name>
User Porject Snapshot
</name>
<url>
http://123.157.244.130:9003/nexus/content/repositories/releases/
</url>
</repository>
<snapshotRepository>
<id>
user-snapshot
</id>
<name>
User Porject Snapshot
</name>
<url>
http://123.157.244.130:9003/nexus/content/repositories/snapshots/
</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<id>
my
</id>
<name>
my
</name>
<url>
http://123.157.244.130:9003/nexus/content/groups/public/
</url>
</repository>
<repository>
<id>
repo1
</id>
<name>
repo1
</name>
<url>
https://repo1.maven.org/maven2/
</url>
</repository>
<repository>
<id>
mvnrepository
</id>
<name>
mvnrepository
</name>
<url>
https://mvnrepository.com/
</url>
</repository>
<repository>
<id>
bintray-qcloud-maven-repo
</id>
<name>
qcloud-maven-repo
</name>
<url>
https://dl.bintray.com/qcloud/maven-repo/
</url>
<layout>
default
</layout>
<releases>
<enabled>
true
</enabled>
</releases>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<!-- start 改为jetty 处理tomcat版本的 The valid characters are defined in RFC
7230 and RFC 3986 异常 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
<exclusion>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
</exclusion>
<exclusion>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-core
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- end 改为 jetty -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.session
</groupId>
<artifactId>
spring-session-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.security
</groupId>
...
...
@@ -132,23 +48,16 @@
<dependency>
<groupId>
com.microsoft.sqlserver
</groupId>
<artifactId>
mssql-jdbc
</artifactId>
<version>
9.4.0.jre8
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
2.0.1
0
</version>
<version>
1.2.7
0
</version>
</dependency>
<dependency>
<groupId>
com.egolm
</groupId>
<artifactId>
common
</artifactId>
<version>
0.0.1-RELEASE
</version>
<exclusions>
<exclusion>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-redis
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
...
...
@@ -180,6 +89,10 @@
<artifactId>
springfox-swagger-ui
</artifactId>
<version>
2.9.2
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.solr
</groupId>
<artifactId>
solr-solrj
</artifactId>
...
...
@@ -219,7 +132,7 @@
<dependency>
<groupId>
com.tencent.cloud
</groupId>
<artifactId>
cos-sts-java
</artifactId>
<version>
3.0.
8
</version>
<version>
3.0.
4
</version>
</dependency>
<!-- 腾讯云 end -->
...
...
@@ -285,4 +198,34 @@
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>
my
</id>
<name>
my
</name>
<url>
http://123.157.244.130:9003/nexus/content/groups/public/
</url>
</repository>
<repository>
<id>
repo1
</id>
<name>
repo1
</name>
<url>
http://repo1.maven.org/maven2/
</url>
</repository>
<repository>
<id>
mvnrepository
</id>
<name>
mvnrepository
</name>
<url>
http://mvnrepository.com/
</url>
</repository>
<repository>
<id>
bintray-qcloud-maven-repo
</id>
<name>
qcloud-maven-repo
</name>
<url>
https://dl.bintray.com/qcloud/maven-repo/
</url>
<layout>
default
</layout>
<releases>
<enabled>
true
</enabled>
</releases>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</repository>
</repositories>
</project>
\ No newline at end of file
src/main/java/com/egolm/shop/ShopApplication.java
View file @
8c7e404f
...
...
@@ -6,7 +6,6 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.scheduling.annotation.EnableAsync
;
...
...
@@ -24,6 +23,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableTransactionManagement
public
class
ShopApplication
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ShopApplication
.
class
);
private
static
ApplicationContext
applicationContext
;
public
static
void
main
(
String
[]
args
)
{
...
...
@@ -34,7 +34,7 @@ public class ShopApplication {
System
.
setProperty
(
"java.io.tmpdir"
,
"/data/temp"
);
//容器内使用这种
}
finally
{
TimeZone
.
setDefault
(
TimeZone
.
getTimeZone
(
"GMT+8"
));
applicationContext
=
SpringApplication
.
run
(
ApplicationContext
.
class
,
args
);
applicationContext
=
SpringApplication
.
run
(
ShopApplication
.
class
,
args
);
}
}
...
...
@@ -54,4 +54,5 @@ public class ShopApplication {
public
static
<
T
>
T
getBean
(
String
name
,
Class
<
T
>
clazz
){
return
getApplicationContext
().
getBean
(
name
,
clazz
);
}
}
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