Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sup-server
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
Administrator
sup-server
Commits
7365d3b7
Commit
7365d3b7
authored
Oct 09, 2022
by
yujicen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化
parent
c1b435bd
Pipeline
#308
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
SupServerApplication.java
src/main/java/com/supServer/SupServerApplication.java
+2
-1
ApplicationConfig.java
...ava/com/supServer/framework/config/ApplicationConfig.java
+1
-1
No files found.
src/main/java/com/supServer/SupServerApplication.java
View file @
7365d3b7
package
com
.
supServer
;
package
com
.
supServer
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
...
@@ -10,9 +11,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
...
@@ -10,9 +11,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* 启动程序
* 启动程序
* @author dsk
* @author dsk
*/
*/
@EnableScheduling
// 开启定时任务功能
@EnableAsync
@EnableAsync
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
})
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
})
@MapperScan
(
"com.supServer.project.mapper"
)
public
class
SupServerApplication
public
class
SupServerApplication
{
{
public
static
void
main
(
String
[]
args
)
public
static
void
main
(
String
[]
args
)
...
...
src/main/java/com/supServer/framework/config/ApplicationConfig.java
View file @
7365d3b7
...
@@ -16,7 +16,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
...
@@ -16,7 +16,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
// 表示通过aop框架暴露该代理对象,AopContext能够访问
// 表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy
(
exposeProxy
=
true
)
@EnableAspectJAutoProxy
(
exposeProxy
=
true
)
// 指定要扫描的Mapper类的包的路径
// 指定要扫描的Mapper类的包的路径
@MapperScan
(
"com.
cqzx
.project.**.mapper"
)
@MapperScan
(
"com.
supServer
.project.**.mapper"
)
public
class
ApplicationConfig
public
class
ApplicationConfig
{
{
/**
/**
...
...
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