@@ -0,0 +1,1832 @@
+/******************************************************************************%0D%0A * Copyright (c) 2014 Masatomi KINO and others. %0D%0A * All rights reserved. This program and the accompanying materials%0D%0A * are made available under the terms of the Eclipse Public License v1.0%0D%0A * which accompanies this distribution, and is available at%0D%0A * http://www.eclipse.org/legal/epl-v10.html%0D%0A * Contributors:%0D%0A *      Masatomi KINO - initial API and implementation%0D%0A * $Id$%0D%0A ******************************************************************************/%0D%0A//%EC%90%AC: 2017/02/10%0D%0A%0D%0Apackage nu.mine.kino.web;%0D%0A%0D%0Aimport org.springframework.web.bind.annotation.PathVariable;%0D%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0D%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0D%0Aimport org.springframework.web.bind.annotation.RestController;%0D%0A%0D%0A/**%0D%0A * @author Masatomi KINO%0D%0A * @version $Revision$%0D%0A */%0D%0A@RestController%0D%0A@RequestMapping(%22/calc%22)%0D%0Apublic class Calc %7B%0D%0A%0D%0A    @RequestMapping(value = %22/%7Bparam1%7D/%7Bparam2%7D/add.json%22, method = RequestMethod.GET)%0D%0A    public Object add(@PathVariable int param1, @PathVariable int param2) %7B%0D%0A        return param1 + param2;%0D%0A    %7D%0D%0A%0D%0A    @RequestMapping(value = %22/%7Bparam1%7D/%7Bparam2%7D/subtract.json%22, method = RequestMethod.GET)%0D%0A    public Object subtract(@PathVariable int param1, @PathVariable int param2) %7B%0D%0A        return param1 + param2;%0D%0A    %7D%0D%0A%0D%0A    @RequestMapping(value = %22/%7Bparam1%7D/%7Bparam2%7D/multiply.json%22, method = RequestMethod.GET)%0D%0A    public Object multiply(@PathVariable int param1, @PathVariable int param2) %7B%0D%0A        return param1 + param2;%0D%0A    %7D%0D%0A%0D%0A    @RequestMapping(value = %22/%7Bparam1%7D/%7Bparam2%7D/divide.json%22, method = RequestMethod.GET)%0D%0A    public Object divide(@PathVariable int param1, @PathVariable int param2) %7B%0D%0A        return param1 + param2;%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Squashed commit of the following: 計算機機能を追加。