forked from spjich/retrieval
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
spjich
committed
Dec 29, 2018
1 parent
94be635
commit 4680cb2
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
retrieval-spring/src/test/java/com/dot/fashion/retrieval/spring/MainTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.dot.fashion.retrieval.spring; | ||
|
||
import com.dot.fashion.retrieval.spring.annotation.service.TestService; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.context.ApplicationListener; | ||
import org.springframework.context.event.ContextRefreshedEvent; | ||
import org.springframework.stereotype.Component; | ||
|
||
/** | ||
* title: | ||
* author:吉 | ||
* since:2018/12/29 | ||
*/ | ||
@SpringBootApplication | ||
public class MainTest implements ApplicationListener<ContextRefreshedEvent> { | ||
/** | ||
* title: | ||
* author:吉 | ||
* since:2018/12/28 | ||
*/ | ||
private Logger logger = LoggerFactory.getLogger(com.dot.fashion.retrieval.spring.ApplicationTest.class); | ||
@Autowired | ||
private TestService testService; | ||
|
||
public void test() { | ||
} | ||
|
||
@Override | ||
public void onApplicationEvent(ContextRefreshedEvent event) { | ||
logger.info("执行结果:" + testService.test(1)); | ||
|
||
} | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(com.dot.fashion.retrieval.spring.ApplicationTest.class); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters