Skip to content

Instantly share code, notes, and snippets.

@jonbodner
Last active February 25, 2019 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonbodner/9b8443f2a72b2819c83cde193c229a89 to your computer and use it in GitHub Desktop.
Save jonbodner/9b8443f2a72b2819c83cde193c229a89 to your computer and use it in GitHub Desktop.
package com.example.demo;
import com.example.demo.calculator.Calculator;
import com.example.demo.calculator.CalculatorImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
@Bean
public Calculator calculator() {
return new CalculatorImpl();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment