Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foo.setName("FOOD")
- @SpringBootApplication
- public class Application {
- @Autowired
- private static Foo foo;
- @Autowired
- private static Bar bar;
- public static void main(String[] args) throws Throwable {
- SpringApplication.run(Application.class, args);
- foo.setName("FOOD");
- }
- }
- @Component
- class Foo {
- private String name;
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- }
Add Comment
Please, Sign In to add comment