BAEL-1461: Combined modules and refactored
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.baeldung.ethereumj.config;
|
||||
|
||||
import com.baeldung.ethereumj.beans.EthBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
@Configuration
|
||||
public class EthConfig {
|
||||
|
||||
@Bean
|
||||
EthBean ethBeanConfig() throws Exception {
|
||||
EthBean eBean = new EthBean();
|
||||
Executors.newSingleThreadExecutor().submit(eBean::start);
|
||||
return eBean;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user