-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBakeryApplication.java
More file actions
37 lines (29 loc) · 856 Bytes
/
Copy pathBakeryApplication.java
File metadata and controls
37 lines (29 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.bakery.bakery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BakeryApplication implements CommandLineRunner {
// @Autowired
// cakeBaker Chocfrosting;
// @Autowired
// cakeBaker ChocSyrup;
// @Autowired
// cakeBaker Strawfrosting;
// @Autowired
// cakeBaker StrawSyrup;
@Autowired
cakeBaker CakeBaker;
public static void main(String[] args) {
SpringApplication.run(BakeryApplication.class, args);
}
@Override
public void run(String... args) throws Exception {
// Chocfrosting.bakeCake();
// ChocSyrup.bakeCake();
// Strawfrosting.bakeCake();
// StrawSyrup.bakeCake();
CakeBaker.bakeCake();
}
}