{"id":303693,"date":"2020-05-15T21:00:20","date_gmt":"2020-05-15T21:00:20","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=303693"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=303693","title":{"rendered":"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u043e\u0432 @SpringBootTest \u043f\u0440\u0438 \u0438\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 Spring Shell \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/502204\/\">\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Spring Shell.<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u0441\u0442\u044b \u2014 \u0442\u043e\u0436\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 (\u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0443 \u0432\u0430\u0441 \u043e\u043d\u0438 \u0435\u0441\u0442\u044c) \u0438, \u0438\u043d\u043e\u0433\u0434\u0430, \u043e\u043d\u0438 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439 @SpringBootTest. \u041e\u0434\u043d\u0430\u043a\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 Spring Shell \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0442\u0435\u0441\u0442, \u0442\u043e\u2026 \u0432\u0430\u0448 \u0442\u0435\u0441\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u043d\u0435\u0442 \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043d\u0430 \u043f\u043e\u0438\u0441\u043a\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h3>\u0413\u0443\u0433\u043b\u0438\u043c<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0434\u043e\u043b\u0433\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430 GitHub \u043d\u0430\u0445\u043e\u0434\u0438\u043c <a href=\"https:\/\/github.com\/spring-projects\/spring-shell\/issues\/171\" rel=\"nofollow\">\u043f\u043e\u0445\u043e\u0436\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0410\u0432\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f shell-\u0430 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0431\u0438\u043d \u0441 \u0442\u0438\u043f\u043e\u043c ApplicationRunner, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438. \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u0430\u043c\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0432 @ShellComponent.<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">@Component public class CliAppRunner implements ApplicationRunner { \tpublic CliAppRunner() {  \t}  \t@Override \tpublic void run(ApplicationArguments args) throws Exception { \t\t\/\/do nothing \t} \t  }  @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes =CliConfig.class) public class ShellCommandIntegrationTest {  \t@Autowired \tprivate Shell shell; \t \t@Test \tpublic void runTest(){ \t\t \t\t \t\tObject result=shell.evaluate(new Input(){ \t\t\t@Override \t\t\tpublic String rawText() { \t\t\t\treturn &quot;add 1 3&quot;; \t\t\t} \t\t\t \t\t});  \t\tDefaultResultHandler  resulthandler=new DefaultResultHandler(); \t\tresulthandler.handleResult(result); \t\t \t\t \t} \t \t } <\/code><\/pre>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0437\u0430\u0432\u0438\u0441\u0430\u044e\u0442 \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. <\/p>\n<p>  <\/p>\n<h3>\u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442!<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043b\u0435\u0433\u043a\u043e\u0433\u043e \u0434\u0435\u0431\u0430\u0433\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 SpringApplication \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">\tprivate void callRunners(ApplicationContext context, ApplicationArguments args) { \t\tList&lt;Object&gt; runners = new ArrayList&lt;&gt;(); \t\trunners.addAll(context.getBeansOfType(ApplicationRunner.class).values()); \t\trunners.addAll(context.getBeansOfType(CommandLineRunner.class).values()); \t\tAnnotationAwareOrderComparator.sort(runners); \t\tfor (Object runner : new LinkedHashSet&lt;&gt;(runners)) { \t\t\tif (runner instanceof ApplicationRunner) { \t\t\t\tcallRunner((ApplicationRunner) runner, args); \t\t\t} \t\t\tif (runner instanceof CommandLineRunner) { \t\t\t\tcallRunner((CommandLineRunner) runner, args); \t\t\t} \t\t} \t} <\/code><\/pre>\n<p>\u0418\u043d\u0430\u0447\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, Spring Boot \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u0448 \u0431\u0438\u043d \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c ApplicationRunner \u0432 \u043a\u043e\u043f\u0438\u043b\u043a\u0443 \u043a \u0443\u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0438\u0445 \u0432\u0441\u0435. <\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u2014 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0431\u0438\u043d! \u0412\u0440\u0435\u043c\u044f \u0437\u0430\u043b\u0435\u0437\u0442\u044c \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 Spring Shell. <\/p>\n<p>  <\/p>\n<h3>\u041f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0431\u0438\u043d<\/h3>\n<p>\u0411\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0437\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043a\u043b\u0430\u0441\u0441 JLineShellAutoConfiguration, \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0431\u0438\u043d scriptApplicationRunner, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u043d\u0435 \u0434\u0430\u0435\u0442 \u043d\u0430\u0448\u0435\u043c\u0443 \u0442\u0435\u0441\u0442\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u041e\u043a, \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0435\u0433\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435 (\u043d\u0435 \u0437\u0430\u0431\u044b\u0432 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c spring.main.allow-bean-definition-overriding=true \u0434\u043b\u044f Spring 2.+):<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">\t        @TestConfiguration \tstatic class Runner { \t\t@Bean \t\tpublic ApplicationRunner scriptApplicationRunner(){ \t\t\treturn new CliAppRunner(); \t\t} \t} <\/code><\/pre>\n<p>\u041d\u0435\u0442, \u043e\u043f\u044f\u0442\u044c \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. JLineShellAutoConfiguration \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u0436\u0435 \u043d\u0430\u0448\u0435\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Runner \u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 scriptApplicationRunner. \u0418 \u0442\u0435\u0441\u0442 \u043e\u043f\u044f\u0442\u044c \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f (<i>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432 \u2014 \u043a\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u2014 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a?<\/i>). <\/p>\n<p>  <\/p>\n<h3>\u0418\u0449\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b<\/h3>\n<p>\u0427\u0442\u043e \u0436, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0431\u0438\u043d\u0430 \u0432 JLineShellAutoConfiguration:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">\t@Bean \t@ConditionalOnProperty(prefix = SPRING_SHELL_SCRIPT, value = ScriptShellApplicationRunner.ENABLED, havingValue = &quot;true&quot;, matchIfMissing = true) \tpublic ApplicationRunner scriptApplicationRunner(Parser parser, ConfigurableEnvironment environment) { \t\treturn new ScriptShellApplicationRunner(parser, shell, environment); \t} <\/code><\/pre>\n<p>\u0423\u0440\u0430, \u043d\u0430\u043c \u043f\u043e\u0432\u0435\u0437\u043b\u043e \u2014 \u0435\u0441\u0442\u044c property, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c. \u0420\u0430\u0434\u043e\u0441\u0442\u043d\u043e \u0431\u0435\u0436\u0438\u043c \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 application.properties:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">spring.shell.script.enabled=false <\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043d\u0430\u0448 \u0442\u0435\u0441\u0442. \u0418 \u043e\u043d \u043e\u043f\u044f\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0430\u0435\u0442. \u041a\u043e\u043f\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435. <\/p>\n<p>  <\/p>\n<h3>\u0420\u0430\u0437\u0433\u0430\u0434\u043a\u0430<\/h3>\n<p>\u0418\u0434\u0435\u043c \u0432 ScriptShellApplicationRunner \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u043c \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 property. \u0410 \u0442\u0430\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">\tpublic static final String SPRING_SHELL_SCRIPT = &quot;spring.shell.script&quot;; \tpublic static final String ENABLED = &quot;spring.shell.script&quot;;  \t\/** \t * The name of the environment property that allows to disable the behavior of this \t * runner. \t *\/ \tpublic static final String SPRING_SHELL_SCRIPT_ENABLED = SPRING_SHELL_SCRIPT + &quot;.&quot; + ENABLED; <\/code><\/pre>\n<p>\u0412\u043e\u0443, \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u2014 \u0438\u0434\u0435\u043c \u0441\u043d\u043e\u0432\u0430 \u0432 application.properties \u0438 \u043f\u0438\u0448\u0435\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">spring.shell.script.spring.shell.script=false  <\/code><\/pre>\n<p>\u0421\u043a\u0440\u0435\u0441\u0442\u0438\u043c \u043f\u0430\u043b\u044c\u0446\u044b. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u0414\u0435\u043b\u043e \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u043e, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p><\/div>\n<p> \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\/502204\/\"> https:\/\/habr.com\/ru\/post\/502204\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/502204\/\">\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Spring Shell.<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u0441\u0442\u044b \u2014 \u0442\u043e\u0436\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 (\u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0443 \u0432\u0430\u0441 \u043e\u043d\u0438 \u0435\u0441\u0442\u044c) \u0438, \u0438\u043d\u043e\u0433\u0434\u0430, \u043e\u043d\u0438 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439 @SpringBootTest. \u041e\u0434\u043d\u0430\u043a\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 Spring Shell \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0442\u0435\u0441\u0442, \u0442\u043e\u2026 \u0432\u0430\u0448 \u0442\u0435\u0441\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u043d\u0435\u0442 \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043d\u0430 \u043f\u043e\u0438\u0441\u043a\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/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-303693","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/303693","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=303693"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/303693\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=303693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=303693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=303693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}