Skip to content

Instantly share code, notes, and snippets.

Created Nov 30, 2018
What would you like to do?
package org.ksakae;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
public class SpringProject01StartApplication {
public static void main(String[] args) {
// 修正
//, args);
ConfigurableApplicationContext cApp =, args);
SpringProject01StartApplication app = cApp.getBean(SpringProject01StartApplication.class);
// メソッド追加
public void hello() {
System.out.println("Hellow World");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment