Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
cloud-fb
Commits
b65b788a
Commit
b65b788a
authored
May 12, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务添加bean
parent
8be650b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
PriceAdjustmentConfiguration.java
...xyst/dinas/price/config/PriceAdjustmentConfiguration.java
+11
-2
No files found.
backend/xyst.dinas.price/src/main/java/com/xyst/dinas/price/config/PriceAdjustmentConfiguration.java
View file @
b65b788a
...
@@ -8,6 +8,8 @@ import com.xyst.dinas.price.dao.PriceAdjustmentDao;
...
@@ -8,6 +8,8 @@ import com.xyst.dinas.price.dao.PriceAdjustmentDao;
import
com.xyst.dinas.price.internal.dao.PriceAdjustmentDaoImpl
;
import
com.xyst.dinas.price.internal.dao.PriceAdjustmentDaoImpl
;
import
com.xyst.dinas.price.internal.service.PriceAdjustmentServiceImpl
;
import
com.xyst.dinas.price.internal.service.PriceAdjustmentServiceImpl
;
import
com.xyst.dinas.price.service.PriceAdjustmentService
;
import
com.xyst.dinas.price.service.PriceAdjustmentService
;
import
com.xyst.dinas.price.task.PriceAdjustmentStatusSchedule
;
import
com.xyst.dinas.price.task.PriceAdjustmentStatusTask
;
import
com.xyst.dinas.price.web.PriceAdjustmentController
;
import
com.xyst.dinas.price.web.PriceAdjustmentController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
...
@@ -32,8 +34,6 @@ public class PriceAdjustmentConfiguration {
...
@@ -32,8 +34,6 @@ public class PriceAdjustmentConfiguration {
new
ClassPathResource
(
"/com/xyst/dinas/price/datamodel/PriceAdjustment.jmx"
,
KClass
.
class
));
new
ClassPathResource
(
"/com/xyst/dinas/price/datamodel/PriceAdjustment.jmx"
,
KClass
.
class
));
}
}
//PriceAdjustmentDaoImpl相关bean配置
//PriceAdjustmentDaoImpl相关bean配置
@Bean
@Bean
public
PriceAdjustmentDao
priceAdjustmentDao
()
{
public
PriceAdjustmentDao
priceAdjustmentDao
()
{
...
@@ -49,6 +49,15 @@ public class PriceAdjustmentConfiguration {
...
@@ -49,6 +49,15 @@ public class PriceAdjustmentConfiguration {
return
new
PriceAdjustmentController
();
return
new
PriceAdjustmentController
();
}
}
@Bean
public
PriceAdjustmentStatusSchedule
priceAdjustmentStatusSchedule
(){
return
new
PriceAdjustmentStatusSchedule
();
}
@Bean
public
PriceAdjustmentStatusTask
priceAdjustmentStatusTask
(){
return
new
PriceAdjustmentStatusTask
();
}
}
}
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