「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
OAuth2、OIDCのID Federation(連携)コードを書くために、
イントラ・プロシキ環境下で無い。
32bitと64bitがあるので揃えること。
と、選択すると使用し易い。
server.port = 8090
security.user.name=hoge security.user.password=hoge
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
package com.example.test1; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView; @Controller public class HeloController { @RequestMapping(value="/", method=RequestMethod.GET) public ModelAndView index(ModelAndView mav) { mav.setViewName("index"); mav.addObject("msg","お名前を書いて送信してください。"); return mav; } @RequestMapping(value="/", method=RequestMethod.POST) public ModelAndView send(@RequestParam("text1")String str, ModelAndView mav) { mav.addObject("msg","こんにちは、" + str + "さん!"); mav.addObject("value",str); mav.setViewName("index"); return mav; } }
<!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>top page</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style> h1 { font-size:18pt; font-weight:bold; color:gray; } body { font-size:13pt; color:gray; margin:5px 25px; } </style> </head> <body> <h1>Helo page</h1> <p th:text="${msg}">please wait...</p> <form method="post" action="/"> <input type="text" name="text1" th:value="${value}" /> <input type="submit" value="Click" /> </form> </body> </html>
Debug実行をする場合は、