Created
November 10, 2014 01:17
-
-
Save gitbricho/83fa29194568058dedf1 to your computer and use it in GitHub Desktop.
healthcare : com.itrane.healthcare.init.WebAppConfig.java
This file contains hidden or 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
@Configuration | |
@EnableWebMvc | |
@Import({ DbConfig.class }) | |
// データベース設定をインポート | |
@ComponentScan("com.itrane.healthcare") | |
@PropertySource("classpath:resources/app.properties") | |
public class WebAppConfig extends WebMvcConfigurerAdapter { | |
... | |
/** | |
* バイタルマスター作成するためのビーン. | |
* TODO: 実際のアプリでは不要 | |
*/ | |
@Bean(initMethod = "initData") | |
public InitMaster initData() { | |
return new InitMaster(); | |
} | |
/** | |
* 1月分のバイタルデータを作成するためのビーン. | |
* TODO: 実際のアプリでは不要 | |
*/ | |
@Bean(initMethod = "createData") | |
public CreateDummyData createData() { | |
return new CreateDummyData(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment