
SpringでコレクションをDIする方法
少しはまった箇所があるので備忘録がてら。サンプルのアプリケーション。 @SpringBootApplication @RestController public class DemoApplication { private GreetingService service; @Autowired public DemoApplication(GreetingService service) { this.service = service; } @RequestMapping("/") String index() { String greetings = service.…