package com.google.mbdebian.springboot.playground.microservices.hacking.persistence;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HackpersistenceApplication {

	public static void main(String[] args) {
		SpringApplication.run(HackpersistenceApplication.class, args);
	}
}

@@ -79,16 +79,79 @@
 tence;%0A%0A
+import org.springframework.beans.factory.annotation.Autowired;%0A
 import o
@@ -261,16 +261,203 @@
 ication;
+%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0Aimport org.springframework.web.bind.annotation.RestController;
 %0A%0A@Sprin
@@ -473,16 +473,32 @@
 ication%0A
+@RestController%0A
 public c
@@ -532,16 +532,286 @@
 tion %7B%0A%0A
+%09@Autowired%0A%09private WordMemory wordMemory;%0A%0A%09@RequestMapping(%22/add%22)%0A%09public String addWord(@RequestParam(value = %22word%22, defaultValue = %22defaultWord%22) String word) %7B%0A%09%09wordMemory.addWord(word);%0A%09%09return String.format(%22Word '%25s' added to the list of words%22, word);%0A%09%7D%0A%0A
 %09public 

add word rest method