Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Retention(RetentionPolicy.RUNTIME)
- @Target({ElementType.TYPE, ElementType.METHOD})
- @Profile("dev")
- public @interface DevProfile {}
- @Bean
- @DevProfile
- public DatabaseDatasource getH2Datasource() {
- return (() -> Arrays.asList("KasiaTest", "BartekTest", "AniaTest", "KrzysztofTest"));
- }
- @Bean
- @ProdProfile
- public DatabaseDatasource | getMysqlDatasource() {
- return new DatabaseDatasource() {
- //read lines
- }
- }
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin
- </artifactId>
- <version>1.6.0</version>
- <configuration>
- <mainClass></mainClass>
- </configuration>
- </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement