Skip to content

Instantly share code, notes, and snippets.

Embed
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;
@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
You can’t perform that action at this time.