Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.Arrays;

@SpringBootApplication
public class Spring6DiApplication {

Expand All @@ -16,6 +18,10 @@ public static void main(String[] args) {
System.out.println("In Main Method");

System.out.println(controller.sayHello());
System.out.println(ctx.getBeanDefinitionCount());
String[] beans = ctx.getBeanDefinitionNames();
Arrays.stream(beans).sorted().forEach(s-> System.out.println(s));
System.out.println("-----");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Created by jt, Spring Framework Guru.
*/
@Primary
//@Primary
@Service
public class GreetingServicePrimary implements GreetingService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;

@ActiveProfiles("ES")
//@ActiveProfiles("ES")
@SpringBootTest
class myi18NControllerTestES {

Expand Down