{"id":790,"date":"2025-04-28T10:21:25","date_gmt":"2025-04-28T01:21:25","guid":{"rendered":"https:\/\/hirabay.net\/?p=790"},"modified":"2025-05-27T08:40:21","modified_gmt":"2025-05-26T23:40:21","slug":"springboot-3-4-to-3-5-%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/hirabay.net\/?p=790","title":{"rendered":"SpringBoot 3.4 to 3.5 \u30e1\u30e2"},"content":{"rendered":"\n<p>SpringBoot 3.5\u304cGA\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br><a href=\"https:\/\/github.com\/spring-projects\/spring-boot\/wiki\/Spring-Boot-3.5-Release-Notes\">Release Notes<\/a>\u3092\u53c2\u8003\u306b3.4\u7cfb\u304b\u3089\u306e\u5909\u66f4\u70b9\u3092\u307e\u3068\u3081\u307e\u3059\u3002<br>\u81ea\u5206\u304c\u79fb\u884c\u3059\u308b\u3068\u304d\u306b\u95a2\u4fc2\u306e\u3042\u308b\u3082\u306e\u3084\u8208\u5473\u304c\u3042\u308b\u3082\u306e\u304c\u4e2d\u5fc3\u3068\u306a\u308a\u307e\u3059\u304c\u3054\u5bb9\u8d66\u304f\u3060\u3055\u3044\ud83d\ude47\u200d\u2642\ufe0f<\/p>\n\n\n\n<div class=\"toc\"><br \/>\n<b>Warning<\/b>:  Undefined array key \"is_admin\" in <b>\/home\/c4179872\/public_html\/hirabay.net\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>110<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_category_top\" in <b>\/home\/c4179872\/public_html\/hirabay.net\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>115<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_top\" in <b>\/home\/c4179872\/public_html\/hirabay.net\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>122<\/b><br \/>\n    <div id=\"toc_container\" class=\"sgb-toc--bullets js-smooth-scroll\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">\n  <li class=\"first\">\n    <a href=\"#i-0\">\u3010\u30c7\u30b0\u30ec\u6ce8\u610f\u3011boolean\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306bon \/ off\u304c\u6307\u5b9a\u4e0d\u53ef\u80fd\u306b<\/a>\n  <\/li>\n  <li>\n    <a href=\"#i-1\">\u3010\u8981\u4fee\u6b63\u3011PushGateway\u5229\u7528\u6642\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5207\u308a\u66ff\u3048<\/a>\n  <\/li>\n  <li class=\"last\">\n    <a href=\"#i-2\">\u3010\u65b0\u6a5f\u80fd\u3011@FilterRegistration \/ @ServletRegistration<\/a>\n  <\/li>\n<\/ul>\n\n      \n    <\/div><\/div><h2 class=\"wp-block-heading\" id=\"i-0\"><a href=\"https:\/\/github.com\/spring-projects\/spring-boot\/wiki\/Spring-Boot-3.5-Release-Notes#using-enabled-and-other-boolean-configuration-properties\">\u3010\u30c7\u30b0\u30ec\u6ce8\u610f\u3011boolean\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306bon \/ off\u304c\u6307\u5b9a\u4e0d\u53ef\u80fd\u306b<\/a><\/h2>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u306fboolean\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b on \/ off \/ true \/ false\u304c\u8a2d\u5b9a\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>3.5\u304b\u3089\u306f true \/ false\u306e\u307f\u306b\u306a\u308a\u3001\u7279\u306bon\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u5834\u5408\u306b\u306ffalse\u3067\u8aad\u307f\u8fbc\u307f\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\uff01<\/p>\n\n\n\n<p>\u203b \u8a66\u3057\u306bMybatis\u95a2\u9023\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067on\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3051\u3069\u3001\u666e\u901a\u306b\u52d5\u3044\u305f\u3002\u3002\u3002<br>Release Note\u3060\u3068 .enable\u3063\u3066\u30ef\u30fc\u30c9\u304c\u3042\u308b\u306e\u3067\u7279\u5b9a\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3060\u3051\u306e\u9069\u7528\u306a\u306e\u304b\u3082\uff1f \ud83e\udd14<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-1\"><a href=\"https:\/\/github.com\/spring-projects\/spring-boot\/wiki\/Spring-Boot-3.5-Release-Notes#prometheus-pushgateway\">\u3010\u8981\u4fee\u6b63\u3011PushGateway\u5229\u7528\u6642\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5207\u308a\u66ff\u3048<\/a><\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-groovy\" data-file=\"build.gradle\" data-lang=\"Groovy\"><code>dependencies {\n  \/\/ before\n  implementation 'io.prometheus:simpleclient_pushgateway'\n  \/\/ after\n  implementation 'io.prometheus:prometheus-metrics-exporter-pushgateway'\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u307e\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4fee\u6b63\u3082\u5fc5\u8981\u306b\u306a\u3063\u3066\u3044\u307e\u3059<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>management:\n  prometheus:\n    metrics:\n      export:\n        pushgateway:\n          # before\n          base-url: http:\/\/localhost:9091\n          # after\n          address: localhost:9091\n          <\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-2\"><a href=\"https:\/\/github.com\/spring-projects\/spring-boot\/wiki\/Spring-Boot-3.5-Release-Notes#annotations-to-register-filter-and-servlet\">\u3010\u65b0\u6a5f\u80fd\u3011@FilterRegistration \/ @ServletRegistration<\/a><\/h2>\n\n\n\n<p>\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066Filter\u3084Servlet\u3092\u767b\u9332\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<p>\u53b3\u5bc6\u306b\u3044\u3046\u3068\u4eca\u307e\u3067\u3082 <code>@Component<\/code> \u7b49\u3067\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u300c\u7279\u5b9a\u306e\u30d1\u30b9\u306e\u307f\u9069\u7528\u300d\u307f\u305f\u3044\u306a\u3053\u3068\u304c\u697d\u306b\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-java\" data-lang=\"Java\"><code>@Configuration\npublic class SampleConfiguration {\n    @Bean\n    public String sampleBean() {\n        return \"This is a sample bean\";\n    }\n\n    @Bean\n    @FilterRegistration(urlPatterns = \"\/sample\/*\")\n    public SampleFilter myFilter() {\n        return new SampleFilter();\n    }\n\n    public static class SampleFilter implements Filter {\n        @Override\n        public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {\n            System.out.println(\"this is sample filter!\");\n        }\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SpringBoot 3.5\u304cGA\u306b\u306a\u308a\u307e\u3057\u305f\u3002Release Notes\u3092\u53c2\u8003\u306b3.4\u7cfb\u304b\u3089\u306e\u5909\u66f4\u70b9\u3092\u307e\u3068\u3081\u307e\u3059\u3002\u81ea\u5206\u304c\u79fb\u884c\u3059\u308b\u3068\u304d\u306b\u95a2\u4fc2\u306e\u3042\u308b\u3082\u306e\u3084\u8208\u5473\u304c\u3042\u308b\u3082\u306e\u304c\u4e2d\u5fc3\u3068\u306a\u308a\u307e\u3059\u304c\u3054\u5bb9\u8d66\u304f\u3060\u3055\u3044\ud83d\ude47\u200d\u2642\ufe0f Warnin &#8230; <\/p>\n","protected":false},"author":1,"featured_media":793,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[13],"class_list":{"0":"post-790","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-6","8":"tag-springboot"},"jetpack_featured_media_url":"https:\/\/hirabay.net\/wp-content\/uploads\/2025\/04\/SpringBoot-2.png","_links":{"self":[{"href":"https:\/\/hirabay.net\/index.php?rest_route=\/wp\/v2\/posts\/790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hirabay.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hirabay.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hirabay.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hirabay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=790"}],"version-history":[{"count":4,"href":"https:\/\/hirabay.net\/index.php?rest_route=\/wp\/v2\/posts\/790\/revisions"}],"predecessor-version":[{"id":797,"href":"https:\/\/hirabay.net\/index.php?rest_route=\/wp\/v2\/posts\/790\/revisions\/797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hirabay.net\/index.php?rest_route=\/wp\/v2\/media\/793"}],"wp:attachment":[{"href":"https:\/\/hirabay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hirabay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hirabay.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}