1. 빈 등록빈으로 등록된 객체는 @Component, @Service, 또는 @Bean을 사용하여 등록할 수 있음여기서는 @Component를 사용해서 진행을 할 거임package com.example.demo.service;import org.springframework.stereotype.Component;@Component("myBean")public class MyBean { public String getWelcomeMessage() { return "Welcome to Spring Boot and Thymeleaf!"; }}여기서 @Component("myBean")은 빈의 이름을 myBean으로 지정함이 이름을 타임리프에서 참조하게 됨(이름을 지정 안해도 빈으로 등록..