Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
b42f56b8
Commit
b42f56b8
authored
May 26, 2021
by
李成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
project init
parent
c4bab30b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
26 deletions
+107
-26
AmosJcsApplication.java
...em/src/main/java/com/yeejoin/amos/AmosJcsApplication.java
+53
-0
App.java
...cs-system/src/main/java/org/amos/boot/jcs/system/App.java
+0
-13
AmosTzsApplication.java
...em/src/main/java/com/yeejoin/amos/AmosTzsApplication.java
+54
-0
App.java
...zs-system/src/main/java/org/amos/boot/tzs/system/App.java
+0
-13
No files found.
amos-boot-jcs-system/src/main/java/com/yeejoin/amos/AmosJcsApplication.java
0 → 100644
View file @
b42f56b8
package
com
.
yeejoin
.
amos
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.core.env.Environment
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
/**
* <pre>
* 机场服务启动类
* </pre>
*
*/
@SpringBootApplication
@EnableTransactionManagement
@EnableConfigurationProperties
@EnableSwagger2
@ServletComponentScan
@EnableDiscoveryClient
@EnableFeignClients
@EnableAsync
@EnableEurekaClient
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
//@MapperScan(basePackages = {"com.yeejoin.amos.patrol.service.business.dao.mapper"})
public
class
AmosJcsApplication
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmosJcsApplication
.
class
);
public
static
void
main
(
String
[]
args
)
{
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
AmosJcsApplication
.
class
,
args
);
Environment
environment
=
context
.
getEnvironment
();
logger
.
info
(
"The requested service of "
+
environment
.
getProperty
(
"spring.application.name"
)
+
" has already been started in "
+
environment
.
getProperty
(
"spring.profiles.active"
)
+
""
+
" environment,and service's url is 'http://localhost:"
+
environment
.
getProperty
(
"server.port"
)
+
"/swagger-ui.html'"
);
}
}
amos-boot-jcs-system/src/main/java/org/amos/boot/jcs/system/App.java
deleted
100644 → 0
View file @
c4bab30b
package
org
.
amos
.
boot
.
jcs
.
system
;
/**
* Hello world!
*
*/
public
class
App
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello World!"
);
}
}
amos-boot-tzs-system/src/main/java/com/yeejoin/amos/AmosTzsApplication.java
0 → 100644
View file @
b42f56b8
package
com
.
yeejoin
.
amos
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.core.env.Environment
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
/**
* <pre>
* 机场服务启动类
* </pre>
*
*/
@SpringBootApplication
@EnableTransactionManagement
@EnableConfigurationProperties
@EnableSwagger2
@ServletComponentScan
@EnableDiscoveryClient
@EnableFeignClients
@EnableAsync
@EnableEurekaClient
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
//@MapperScan(basePackages = {"com.yeejoin.amos.patrol.service.business.dao.mapper"})
public
class
AmosTzsApplication
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmosTzsApplication
.
class
);
public
static
void
main
(
String
[]
args
)
{
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
AmosTzsApplication
.
class
,
args
);
Environment
environment
=
context
.
getEnvironment
();
logger
.
info
(
"The requested service of "
+
environment
.
getProperty
(
"spring.application.name"
)
+
" has already been started in "
+
environment
.
getProperty
(
"spring.profiles.active"
)
+
""
+
" environment,and service's url is 'http://localhost:"
+
environment
.
getProperty
(
"server.port"
)
+
"/swagger-ui.html'"
);
}
}
amos-boot-tzs-system/src/main/java/org/amos/boot/tzs/system/App.java
deleted
100644 → 0
View file @
c4bab30b
package
org
.
amos
.
boot
.
tzs
.
system
;
/**
* Hello world!
*
*/
public
class
App
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello World!"
);
}
}
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