Skip to content

Instantly share code, notes, and snippets.

@gitbricho
Created November 10, 2014 01:17
Show Gist options
  • Save gitbricho/83fa29194568058dedf1 to your computer and use it in GitHub Desktop.
Save gitbricho/83fa29194568058dedf1 to your computer and use it in GitHub Desktop.
healthcare : com.itrane.healthcare.init.WebAppConfig.java
@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