Last active
August 29, 2019 06:41
-
-
Save wreulicke/ce0a91a4ad3ac805063913805a6c540e to your computer and use it in GitHub Desktop.
こんな感じで動いてほしい
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
@SpringBootTest | |
public class いい感じのテスト_案1 { | |
@TestConfiguration | |
public static Config { | |
@Bean | |
@ConfigurationProperties | |
ConfigProps configProps() {...} | |
} | |
} | |
@Configuration | |
public class いい感じのConfigraution { | |
@Bean | |
@ConfigurationProperties | |
ConfigProps configProps() {...} | |
} | |
public class ConfigProps {} |
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
@SpringBootTest | |
@Import(いい感じのConfigraution.class) | |
public class いい感じのテスト_案2 { | |
} | |
@Configuration | |
public class いい感じのConfigraution { | |
@Bean | |
@ConfigurationProperties | |
ConfigProps configProps() {...} | |
} | |
public class ConfigProps {} |
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
@SpringBootTest | |
@EnableConfigurationProperties(ConfigProps.class) | |
public class いい感じのテスト_案3 { | |
} | |
@Configuration | |
public class いい感じのConfigraution { | |
@Bean | |
ConfigProps configProps() {...} | |
} | |
@ConfigurationProperties | |
public class ConfigProps {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment