@@ -0,0 +1,1028 @@
+package com.aws.spring;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.Model;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A@Controller%0Apublic class BotController %7B%0A%0A    @Autowired%0A    LexService lex;%0A%0A    @GetMapping(%22/%22)%0A    public String greetingForm(Model model) %7B%0A        return %22index%22;%0A    %7D%0A%0A    // Adds a new item to the DynamoDB database%0A    @RequestMapping(value = %22/text%22, method = RequestMethod.POST)%0A    @ResponseBody%0A    String addItems(HttpServletRequest request, HttpServletResponse response) %7B%0A%0A       String text = request.getParameter(%22text%22);%0A       String message = lex.getText(text);%0A       return message;%0A    %7D%0A%7D%0A

Create BotController.java