Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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;
public class DemoApplication {
public static void main(String[] args) {, args);
public Calculator calculator() {
return new CalculatorImpl();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.