{"id":2911,"date":"2018-05-19T17:55:03","date_gmt":"2018-05-19T08:55:03","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=2911"},"modified":"2023-05-27T23:09:46","modified_gmt":"2023-05-27T14:09:46","slug":"%e3%80%90spring-boot%e3%80%91javax-servlet-servletexception-circular-view-path-%ef%bd%9e-would-dispatch-back-to-the-current-handler-url-%ef%bd%9e-again-check-your-viewresolver-setup-hint-th","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=2911","title":{"rendered":"\u3010Spring Boot\u3011SpringBoot\u306e\u57fa\u672c\u3001javax.servlet.ServletException: Circular view path [\uff5e]: would dispatch back to the current handler URL [\/\uff5e] again. \u304c\u51fa\u3066\u56f0\u3063\u305f\u8a71\u3002"},"content":{"rendered":"<h2>Spring Boot\u3068\u306f\uff1f<\/h2>\n<p>Spring Framework\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4e00\u3064\u3067\u3001<span style=\"color: #ff0000;\"><strong>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5411\u3051\u306e\u30e9\u30a4\u30d6\u30e9\u30ea<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>Spring MVC\u3068\u306e\u9055\u3044\u306f\uff1f<\/h2>\n<p>Spring Framework\u306b\u306f\u3001Spring MVC\u3068\u3044\u3046\u540c\u3058\u304fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5411\u3051\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u9055\u3044\u306f\u4f55\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"RcMNSQtRdU\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=2470\">\u3010Spring Framework\u3011Spring MVC\u3068\u306f\uff1f<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=2470&#038;embed=true#?secret=RcMNSQtRdU\" data-secret=\"RcMNSQtRdU\" width=\"500\" height=\"282\" title=\"&#8220;\u3010Spring Framework\u3011Spring MVC\u3068\u306f\uff1f&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u4e00\u8a00\u3067\u8a00\u3048\u3070\u3001\u300cSpring Boot\u300d\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u958b\u767a\u306e\u9ad8\u901f\u5316\u300d<\/strong><\/span>\u3092\u3088\u308a\u76ee\u6307\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6628\u4eca\u306eWeb\u958b\u767a\u306f\u3001\u304b\u306a\u308a\u30b9\u30d4\u30fc\u30c9\u304c\u6c42\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3044\u3061\u3044\u3061\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u306b\u4f55\u30f6\u6708\u304b\u3089\u4f55\u5e74\u3082\u304b\u3051\u3066\u3044\u305f\u306e\u3067\u306f\u3001\u958b\u767a\u304c\u8ffd\u3044\u3064\u304b\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>MVC\u3067\u8a00\u3048\u3070\u3001<span style=\"color: #ff0000;\"><strong>\u300cC\uff1a\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u300d\u306e\u307f\u4f5c\u308c\u3070\u3001\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>\u7279\u5fb4<\/h2>\n<ul>\n<li>\u30c6\u30b9\u30c8\u3067\u3042\u308c\u3070\u3001<span style=\"color: #ff0000;\"><strong>Grovy\u306e\u30b9\u30af\u30ea\u30d7\u30c81\u672c<\/strong><\/span>\u3067\u52d5\u304f\u3002<\/li>\n<li>Java\u3067\u306f\u3001\u304a\u306a\u3058\u307f\uff08\u7b11\uff09\u306e<span style=\"color: #ff0000;\"><strong>XML\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u4e00\u5207\u306a\u3044\u3002<\/strong><\/span><\/li>\n<li><span style=\"color: #ff0000;\"><strong>\u30b5\u30fc\u30d0\u30fc\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5185\u8535<\/strong><\/span>\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u52d5\u4f5c\u78ba\u8a8d\u304c\u697d\u3002<\/li>\n<li>Maven\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u5229\u7528\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n<p>\u3042\u306e\u3001<span style=\"color: #ff0000;\"><strong>\u3046\u3093\u3056\u308a\u3059\u308bweb.xml\u3082\u3001Bean\u3082\u3001pom.xml\u3001Tomcat\u3082\u4f55\u306b\u3082\u5fc5\u8981\u306a\u3044<\/strong><\/span>\u306e\u3067\u3059\u3002<\/p>\n<h2>Grovy<\/h2>\n<p>Java\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u3067\u3001\u52d5\u4f5c\u3057\u3001\u6587\u6cd5\u3082Java\u306b\u8fd1\u3044\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u300cJava\u306e\u7c21\u6613\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u300d<\/strong><\/span>\u3068\u3044\u3048\u307e\u3059\u3002<\/p>\n<h2>Spring Boot CLI<\/h2>\n<p>Spring Boot\u7528\u306e\u5c02\u7528\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>Grovy\u304c\u5185\u81d3\u3055\u308c\u3066\u304a\u308a\u3001Java\u3082Grovy\u3082\u3069\u3061\u3089\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Hello World\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002<\/h2>\n<p>Spring Boot\u3067\u3001\u300cThymeleaf(\u30bf\u30a4\u30e0\u30ea\u30fc\u30d5)\u300d\u3092\u4f7f\u3063\u3066\u3001Web\u30a2\u30d7\u30ea\u306e\u30d3\u30e5\u30fc\u3092\u4f5c\u308d\u3046\u3068\u3057\u305f\u969b\u306b\u3001\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u56f0\u308a\u307e\u3057\u305f\u3002<\/p>\n<div class=\"graybox\">javax.servlet.ServletException: Circular view path [\uff5e]: would dispatch back to the current handler URL [\/\uff5e] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)<\/div>\n<p>\u8272\u3005\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u539f\u56e0\u306f\u3001\u4e0b\u8a18\u306e\u30da\u30fc\u30b8\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u300cThymeleaf(\u30bf\u30a4\u30e0\u30ea\u30fc\u30d5)\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u306b\u3082\u95a2\u308f\u3089\u305a\u3001\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u304c\u3042\u308b<\/strong><\/span>\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>https:\/\/stackoverflow.com\/questions\/41966454\/spring-boot-with-thymeleaf-error-circular-view-path-would-dispatch-back-to-the<\/p>\n<p>\u4e00\u65e6\u3001maven\u306e\u4f9d\u5b58\u95a2\u4fc2\u306b\u95a2\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u300c.m2\u300d\u5168\u4f53\u3092\u524a\u9664\u3057\u307e\u3059\u3002<br \/>\n<span style=\"color: #ff0000;\"><strong>\uff08Eclipse\u7b49\u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4e00\u65e6\u9589\u3058\u306a\u3044\u3068\u3001\u5168\u3066\u6d88\u305b\u306a\u3044\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002\uff09<\/strong><\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2917\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/m2\u524a\u9664.png\" alt=\"\" width=\"273\" height=\"233\" \/><\/p>\n<p>\u518d\u5ea6\u3001Maven Install\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2897\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/Spring-Boot6.png\" alt=\"\" width=\"548\" height=\"460\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/Spring-Boot6.png 548w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/Spring-Boot6-300x252.png 300w\" sizes=\"(max-width: 548px) 100vw, 548px\" \/><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u5f8c\u306b\u3001\u518d\u5ea6\u8d77\u52d5\u3057\u305f\u3089\u6b63\u5e38\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2922\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/05\/hello-world_ThemaReaf.png\" alt=\"\" width=\"283\" height=\"101\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"Spring Boot\u3068\u306f\uff1f Spring Framework\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4e00\u3064\u3067\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5411\u3051\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306a\u308a\u307e\u3059\u3002 Spring MVC\u3068\u306e\u9055\u3044\u306f\uff1f Spring Framework\u306b\u306f [&hellip;]","protected":false},"author":1,"featured_media":2932,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[31],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/2911"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2911"}],"version-history":[{"count":12,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/2911\/revisions"}],"predecessor-version":[{"id":20568,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/2911\/revisions\/20568"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/2932"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2911"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}