{"id":337378,"date":"2022-08-22T15:00:32","date_gmt":"2022-08-22T15:00:32","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=337378"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=337378","title":{"rendered":"<span>Spring Boot 3.0 \u2014 \u0433\u043e\u0442\u043e\u0432\u0438\u043c\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0425\u0430\u0431\u0440\u0430!<\/p>\n<p>\u0414\u043e \u0432\u044b\u0445\u043e\u0434\u0430 Spring Boot 3 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e &#8212; 3 \u043c\u0435\u0441\u044f\u0446\u0430. \u0423\u0436\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u044c\u0438 &#8212;<br \/><a href=\"https:\/\/www.baeldung.com\/spring-boot-3-spring-6-new\" rel=\"noopener noreferrer nofollow\">What\u2019s New<\/a>, <a href=\"https:\/\/www.springcloud.io\/post\/2022-05\/springboot-3-0\" rel=\"noopener noreferrer nofollow\">It&#8217;s time to get ready<\/a>. \u041d\u0435\u0434\u0430\u0432\u043d\u043e JetBrains \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0430 IDEA <a href=\"https:\/\/www.jetbrains.com\/ru-ru\/idea\/whatsnew\/\" rel=\"noopener noreferrer nofollow\">\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Spring 6 \u0438 Spring Boot 3<\/a>. \u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. \u0412 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0439 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0443\u0447\u0435\u0431\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 Spring Boot 2.x + HATEOAS  \u043d\u0430 Spring Boot 3, \u0448\u0430\u0433\u0438 \u0438 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0438\u0436\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7c7\/4d8\/742\/7c74d8742a16fd17ddd179b061e4646b.png\" alt=\"Spring Boot 3.0 - \u0433\u043e\u0442\u043e\u0432\u0438\u043c\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435\" title=\"Spring Boot 3.0 - \u0433\u043e\u0442\u043e\u0432\u0438\u043c\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435\" width=\"1023\" height=\"576\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7c7\/4d8\/742\/7c74d8742a16fd17ddd179b061e4646b.png\"\/><figcaption>Spring Boot 3.0 &#8212; \u0433\u043e\u0442\u043e\u0432\u0438\u043c\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435<\/figcaption><\/figure>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0432\u0437\u044f\u0442 \u043a\u043e\u0434 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430  Spring Boot 2.x + HATEOAS (<a href=\"https:\/\/github.com\/JavaOPs\/bootjava\/tree\/patched\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u0434 \u043d\u0430 GitHub \u0432 \u0432\u0435\u0442\u043a\u0435 patched<\/a>). \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 &#8212; \u043e\u0441\u043d\u043e\u0432\u0430 \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e REST \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f: \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0440\u043e\u043b\u0435\u0439, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u043c \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.  <\/p>\n<p><a href=\"https:\/\/github.com\/JavaOPs\/cloudjava\/commits\/patched\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0440\u0432\u044b\u043c \u043a\u043e\u043c\u0438\u0442\u043e\u043c (\u0432\u0435\u0442\u043a\u0430 patched)<\/a> \u043f\u0435\u0440\u0435\u0432\u0435\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 Maven \u043d\u0430 Gradle &#8212; \u0434\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b, \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u043e\u0432\u043e\u0434:) \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 &#8212; \u043f\u0440\u043e\u0442\u0438\u0432 Maven \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u043c\u0435\u044e, \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f Gradle \u0438 Maven \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0438.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0431\u043e\u0440 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0448\u0430\u0433\u0430 &#8212; \u043a\u043e\u0434\u0430 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438: <a href=\"https:\/\/github.com\/JavaOPs\/cloudjava\/commit\/2d74f6158b8380587a3360e911e3a6ff42c49642\" rel=\"noopener noreferrer nofollow\">\u0441ommit details<\/a><br \/>\u0414\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0447\u0435\u043a\u0430\u0442\u044c \u043a \u0441\u0435\u0431\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u044d\u0442\u043e\u0439 \u0440\u0435\u0432\u0438\u0437\u0438\u0435\u0439:<\/p>\n<p><code>git clone --branch patched https:\/\/github.com\/JavaOPs\/cloudjava<br \/>cd cloudjava<br \/>git checkout 2d74f6158b8380587a3360e911e3a6ff42c49642<\/code><\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e Spring \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u00a0snapshot \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u00a0<code>build.gradle<\/code><\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c\u00a0<code>springdoc-openapi<\/code>\u00a0\u043d\u0430 <code>springdoc-openapi-starter-webmvc-ui<\/code>  \u0438 \u043f\u0430\u043a\u0435\u0442\u00a0\u0434\u043b\u044f <code>GroupedOpenApi<\/code>:\u00a0\u0441\u043c\u043e\u0442\u0440\u0438 <a href=\"https:\/\/github.com\/springdoc\/springdoc-openapi-demos\/wiki\/springdoc-openapi-2.x-migration-guide\" rel=\"noopener noreferrer nofollow\">SpringDoc OpenAPI 2.x migration guide<\/a><\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u00a0snapshot \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u00a0<code>settings.gradle<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u043e\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u0435\u043d\u044f\u0435\u043c <code>javax.validation<\/code>\u00a0 \u0438 \u00a0<code>javax.servlet<\/code>\u00a0 \u043d\u0430\u00a0 <code>jakarta<\/code> (\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439). \u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439 JPA 3, Hibernate 6, Hibernate Validator 7 \u0438 Tomcat 10 !<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c <code>jackson-datatype-hibernate5<\/code>\u00a0\u043d\u0430\u00a0<code>jackson-datatype-hibernate5-jakarta<\/code>. \u0412\u00a0<code>AppConfig<\/code><a href=\"https:\/\/github.com\/JavaOPs\/cloudjava\/commit\/3be427123b4efd9e97c000187b8970b3c4be6e80#diff-465dabf1f99ce71c88fe107bc42a3598b1a6c2056929bb8c615035d898b045b7\" rel=\"noopener noreferrer nofollow\">\u00a0<\/a>\u0442\u0430\u043a\u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0443 \u00a0<code>Hibernate5Module<\/code>\u00a0 \u043d\u0430\u00a0 <code>Hibernate5JakartaModule<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0<code>GlobalExceptionHandler<\/code><a href=\"https:\/\/github.com\/JavaOPs\/cloudjava\/commit\/3be427123b4efd9e97c000187b8970b3c4be6e80#diff-0bad4681446ba06bce931242ff82be933101008537a35c66c4048a7b41925233\" rel=\"noopener noreferrer nofollow\">\u00a0<\/a>\u043c\u0435\u043d\u044f\u0435\u043c\u00a0<code>HttpStatus<\/code>\u00a0\u043d\u0430\u00a0<code>HttpStatusCode<\/code>. \u041f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0431\u0435\u0437 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u0442\u044c <code>enum<\/code>. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f <code>getReasonPhrase()<\/code> \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c <code>instanceof HttpStatus<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0<code>AdminUserControllerTest<\/code>\u00a0\u043d\u0435 \u0438\u0434\u0443\u0442 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043e \u0441\u043b\u0435\u0448\u0435\u043c \u0432 \u043a\u043e\u043d\u0446\u0435. \u0421\u0434\u0435\u043b\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e\u00a0<code>REST_URL_SLASH<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u0441\u0442\u0440\u0435\u0442\u044f\u0442\u0441\u044f \u043d\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0437\u0434\u0435\u0441\u044c \u0448\u0430\u0433\u0438, \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. \u0422\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043b\u044e\u0431\u044b\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u043c \u043f\u043e \u043a\u043e\u0434\u0443.<\/p>\n<p>\u0418 &#8212; \u0436\u0435\u043b\u0430\u044e \u0443\u0441\u043f\u0435\u0445\u043e\u0432 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 Spring Boot 3!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/683936\/\"> https:\/\/habr.com\/ru\/post\/683936\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0425\u0430\u0431\u0440\u0430!<\/p>\n<p>\u0414\u043e \u0432\u044b\u0445\u043e\u0434\u0430 Spring Boot 3 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e &#8212; 3 \u043c\u0435\u0441\u044f\u0446\u0430. \u0423\u0436\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u044c\u0438 &#8212;<br \/><a href=\"https:\/\/www.baeldung.com\/spring-boot-3-spring-6-new\" rel=\"noopener noreferrer nofollow\">What\u2019s New<\/a>, <a href=\"https:\/\/www.springcloud.io\/post\/2022-05\/springboot-3-0\" rel=\"noopener noreferrer nofollow\">It&#8217;s time to get ready<\/a>. \u041d\u0435\u0434\u0430\u0432\u043d\u043e JetBrains \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0430 IDEA <a href=\"https:\/\/www.jetbrains.com\/ru-ru\/idea\/whatsnew\/\" rel=\"noopener noreferrer nofollow\">\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Spring 6 \u0438 Spring Boot 3<\/a>. \u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438. \u0412 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0439 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0443\u0447\u0435\u0431\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 Spring Boot 2.x + HATEOAS  \u043d\u0430 Spring Boot 3, \u0448\u0430\u0433\u0438 \u0438 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0438\u0436\u0435.<\/p>\n<figure class=\"full-width\"><figcaption>Spring Boot 3.0 &#8212; \u0433\u043e\u0442\u043e\u0432\u0438\u043c\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435<\/figcaption><\/figure>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0432\u0437\u044f\u0442 \u043a\u043e\u0434 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430  Spring Boot 2.x + HATEOAS (<a href=\"https:\/\/github.com\/JavaOPs\/bootjava\/tree\/patched\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u0434 \u043d\u0430 GitHub \u0432 \u0432\u0435\u0442\u043a\u0435 patched<\/a>). \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 &#8212; \u043e\u0441\u043d\u043e\u0432\u0430 \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e REST \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f: \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0440\u043e\u043b\u0435\u0439, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u043c \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.  <\/p>\n<p><a href=\"https:\/\/github.com\/JavaOPs\/cloudjava\/commits\/patched\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0440\u0432\u044b\u043c \u043a\u043e\u043c\u0438\u0442\u043e\u043c (\u0432\u0435\u0442\u043a\u0430 patched)<\/a> \u043f\u0435\u0440\u0435\u0432\u0435\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 Maven \u043d\u0430 Gradle &#8212; \u0434\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b, \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u043e\u0432\u043e\u0434:) \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 &#8212; \u043f\u0440\u043e\u0442\u0438\u0432 Maven \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u043c\u0435\u044e, \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f Gradle \u0438 Maven \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0438.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0431\u043e\u0440 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0448\u0430\u0433\u0430 &#8212; \u043a\u043e\u0434\u0430 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438: <a href=\"https:\/\/github.com\/JavaOPs\/cloudjava\/commit\/2d74f6158b8380587a3360e911e3a6ff42c49642\" rel=\"noopener noreferrer nofollow\">\u0441ommit details<\/a><br \/>\u0414\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0447\u0435\u043a\u0430\u0442\u044c \u043a \u0441\u0435\u0431\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u044d\u0442\u043e\u0439 \u0440\u0435\u0432\u0438\u0437\u0438\u0435\u0439:<\/p>\n<p><code>git clone --branch patched https:\/\/github.com\/JavaOPs\/cloudjava<br \/>cd cloudjava<br \/>git checkout 2d74f6158b8380587a3360e911e3a6ff42c49642<\/code><\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e Spring \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u00a0snapshot \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u00a0<code>build.gradle<\/code><\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c\u00a0<code>springdoc-openapi<\/code>\u00a0\u043d\u0430 <code>springdoc-openapi-starter-webmvc-ui<\/code>  \u0438 \u043f\u0430\u043a\u0435\u0442\u00a0\u0434\u043b\u044f <code>GroupedOpenApi<\/code>:\u00a0\u0441\u043c\u043e\u0442\u0440\u0438 <a href=\"https:\/\/github.com\/springdoc\/springdoc-openapi-demos\/wiki\/springdoc-openapi-2.x-migration-guide\" rel=\"noopener noreferrer nofollow\">SpringDoc OpenAPI 2.x migration guide<\/a><\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u00a0snapshot \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0432\u00a0<code>settings.gradle<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u043e\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u0435\u043d\u044f\u0435\u043c <code>javax.validation<\/code>\u00a0 \u0438 \u00a0<code>javax.servlet<\/code>\u00a0 \u043d\u0430\u00a0 <code>jakarta<\/code> (\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439). \u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439 JPA 3, Hibernate 6, Hibernate Validator 7 \u0438 Tomcat 10 !<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c <code>jackson-datatype-hibernate5<\/code>\u00a0\u043d\u0430\u00a0<code>jackson-datatype-hibernate5-jakarta<\/code>. \u0412\u00a0<code>AppConfig<\/code><a href=\"https:\/\/github.com\/JavaOPs\/cloudjava\/commit\/3be427123b4efd9e97c000187b8970b3c4be6e80#diff-465dabf1f99ce71c88fe107bc42a3598b1a6c2056929bb8c615035d898b045b7\" rel=\"noopener noreferrer nofollow\">\u00a0<\/a>\u0442\u0430\u043a\u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0443 \u00a0<code>Hibernate5Module<\/code>\u00a0 \u043d\u0430\u00a0 <code>Hibernate5JakartaModule<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0<code>GlobalExceptionHandler<\/code><a href=\"https:\/\/github.com\/JavaOPs\/cloudjava\/commit\/3be427123b4efd9e97c000187b8970b3c4be6e80#diff-0bad4681446ba06bce931242ff82be933101008537a35c66c4048a7b41925233\" rel=\"noopener noreferrer nofollow\">\u00a0<\/a>\u043c\u0435\u043d\u044f\u0435\u043c\u00a0<code>HttpStatus<\/code>\u00a0\u043d\u0430\u00a0<code>HttpStatusCode<\/code>. \u041f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0431\u0435\u0437 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u0442\u044c <code>enum<\/code>. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f <code>getReasonPhrase()<\/code> \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c <code>instanceof HttpStatus<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0<code>AdminUserControllerTest<\/code>\u00a0\u043d\u0435 \u0438\u0434\u0443\u0442 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043e \u0441\u043b\u0435\u0448\u0435\u043c \u0432 \u043a\u043e\u043d\u0446\u0435. \u0421\u0434\u0435\u043b\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e\u00a0<code>REST_URL_SLASH<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u0441\u0442\u0440\u0435\u0442\u044f\u0442\u0441\u044f \u043d\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0437\u0434\u0435\u0441\u044c \u0448\u0430\u0433\u0438, \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. \u0422\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043b\u044e\u0431\u044b\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u043c \u043f\u043e \u043a\u043e\u0434\u0443.<\/p>\n<p>\u0418 &#8212; \u0436\u0435\u043b\u0430\u044e \u0443\u0441\u043f\u0435\u0445\u043e\u0432 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 Spring Boot 3!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/683936\/\"> https:\/\/habr.com\/ru\/post\/683936\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-337378","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=337378"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337378\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}