Skip to content

Commit

Permalink
修复扩展点启动不执行init的bug
Browse files Browse the repository at this point in the history
将BizScenario移动到dto组件中
  • Loading branch information
wzslw committed Dec 16, 2020
1 parent 1e22413 commit 81e0b24
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion cola-components/cola-component-extension-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-dto</artifactId>
<version>${cola.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cola</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.Map;

Expand All @@ -24,6 +25,7 @@ public class ExtensionBootstrap implements ApplicationContextAware {

private ApplicationContext applicationContext;

@PostConstruct
public void init(){
Map<String, Object> extensionBeans = applicationContext.getBeansWithAnnotation(Extension.class);
extensionBeans.values().forEach(
Expand Down

0 comments on commit 81e0b24

Please sign in to comment.