<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hs_hachi</author_name>
  <author_url>https://blog.hatena.ne.jp/hs_hachi/</author_url>
  <blog_title>個人的なまとめ</blog_title>
  <blog_url>https://hachi.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Spring</anon>
  </categories>
  <description>社内の人が研修でSpringMVCやってるらしいので、流行りに乗ってやってみました。といっても、やることと 1. システム例外発生時のエラー画面遷移 2. DBからデータを検索してきたときに、404エラーへ飛ばす。 の2本でお送りします。ソースはGitHub上へここへ公開済みです。 1．システム例外時のエラー画面遷移 実はこれ、Spring関係無かったりします。 Tomcat（それともservlet？）の仕様です。web.xmlに以下のように書けばOK。 に書くのはレスポンスコードです。 この場合は404エラーの場合は/error/404.html画面に遷移します。 また、例外の種類ごとにも制…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhachi.hatenablog.com%2Fentry%2F20110924%2F1316879191&quot; title=&quot; SpringMVCのエラー系・異常系画面遷移 - 個人的なまとめ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/h/hs_hachi/20110924/20110924203214.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-09-24 00:46:31</published>
  <title> SpringMVCのエラー系・異常系画面遷移</title>
  <type>rich</type>
  <url>https://hachi.hatenablog.com/entry/20110924/1316879191</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
