Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SpringBootApplication
- public class DemoApplication {
- @Bean
- public static HelloWorld getMessageBean(){
- HelloWorld hw = new HelloWorld();
- hw.setMessage("Hello World!");
- return hw;
- }
- public static void main(String[] args) {
- SpringApplication.run(DemoApplication.class, args);
- System.out.println("Message: " + getMessageBean().getMessage());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement