Merge pull request #7980 from SmartyAnsh/master

BAEL-1871 - Spring Data Geode
This commit is contained in:
Eric Martin
2019-10-24 21:16:35 -05:00
committed by GitHub
parent db85c8f275
commit 7c2d7a58c3
20515 changed files with 1643791 additions and 0 deletions
@@ -0,0 +1,14 @@
package com.baeldung.spring.bom;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class HelloWorldApp {
public static void main(String[] args) {
ApplicationContext ctx = new AnnotationConfigApplicationContext(HelloWorldConfig.class);
HelloWorldBean helloWorldBean = ctx.getBean(HelloWorldBean.class);
System.out.println(helloWorldBean.sayHello());
}
}
@@ -0,0 +1,8 @@
package com.baeldung.spring.bom;
public class HelloWorldBean {
public String sayHello() {
return "Hello World With Maven BOM";
}
}
@@ -0,0 +1,13 @@
package com.baeldung.spring.bom;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class HelloWorldConfig {
@Bean
public HelloWorldBean helloWorldBean() {
return new HelloWorldBean();
}
}
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
@@ -0,0 +1,13 @@
package org.baeldung;
import org.junit.Test;
import com.baeldung.spring.bom.HelloWorldApp;
public class SpringContextIntegrationTest {
@Test
public final void testMain() throws Exception {
HelloWorldApp.main(null);
}
}
@@ -0,0 +1,13 @@
package org.baeldung;
import org.junit.Test;
import com.baeldung.spring.bom.HelloWorldApp;
public class SpringContextTest {
@Test
public final void testMain() throws Exception {
HelloWorldApp.main(null);
}
}