{"id":330865,"date":"2022-03-21T03:00:14","date_gmt":"2022-03-21T03:00:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=330865"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=330865","title":{"rendered":"<span>\u041f\u0430\u0440\u0441\u0438\u043d\u0433 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 JAVA<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div class=\"persona\" persona=\"true\"><img decoding=\"async\" persona=\"true\" class=\"image persona__image\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/872\/a3a\/e92\/872a3ae923d23b632f13a8248e2fd667.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/872\/a3a\/e92\/872a3ae923d23b632f13a8248e2fd667.png\"\/><\/p>\n<h5 class=\"persona__heading\" persona=\"true\">\u0418\u0432\u0430\u043d\u043e\u0432 \u041c\u0430\u043a\u0441\u0438\u043c<\/h5>\n<p persona=\"true\" class=\"persona__text\">\u041c\u043b\u0430\u0434\u0448\u0438\u0439 Java \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442<\/p>\n<\/div>\n<h4>\u0418\u043b\u0438 \u0440\u0435\u0446\u0435\u043f\u0442 \u043f\u043e \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0430\u043b\u0430\u0442\u0430 \u00ab\u041f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u043f\u0430\u0440\u0441\u0435\u0440\u00bb<\/h4>\n<figure class=\"bordered\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b1f\/bd1\/3a4\/b1fbd13a4c0c15100d82f70683d6ee2c.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a - http:\/\/memesmix.net\/meme\/95ipef\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a - http:\/\/memesmix.net\/meme\/95ipef\" width=\"463\" height=\"332\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b1f\/bd1\/3a4\/b1fbd13a4c0c15100d82f70683d6ee2c.png\"\/><figcaption>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a &#8212; http:\/\/memesmix.net\/meme\/95ipef<\/figcaption><\/figure>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f &#8212; \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u043c, \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u044b\u043b\u0438 \u0432\u0437\u044f\u0442\u044b XML \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0441\u0430\u0439\u0442\u0430 <a href=\"https:\/\/cbr.ru\/scripts\/XML_daily.asp?date_req=23\/01\/2022.xml\" rel=\"noopener noreferrer nofollow\">\u0426\u0435\u043d\u0442\u0440 \u0411\u0430\u043d\u043a\u0430<\/a>.<\/p>\n<blockquote>\n<p><strong>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b &#8212; Spring Boot, PostgreSQL \u0438 Hibernate.<\/strong><\/p>\n<\/blockquote>\n<h4>\u0418\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u044b:<\/h4>\n<ol>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Spring Boot \u043f\u0440\u043e\u0435\u043a\u0442, \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/start.spring.io\/\" rel=\"noopener noreferrer nofollow\">Spring Initializr<\/a>. (\u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f <a href=\"https:\/\/gradle.org\/install\/\" rel=\"noopener noreferrer nofollow\">Gradle<\/a>)<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.postgresql.org\/download\/\" rel=\"noopener noreferrer nofollow\">PostgreSQL<\/a> (\u0434\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e &#8212; <a href=\"https:\/\/dbeaver.io\/download\/\" rel=\"noopener noreferrer nofollow\">DBeaver<\/a>)<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.postman.com\/downloads\/\" rel=\"noopener noreferrer nofollow\">Postman<\/a> &#8212; \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441 \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041f\u0440\u043e\u0448\u0443 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 &#8212; \u0432\u043e\u0442 \u043c\u043e\u0439 <a href=\"https:\/\/github.com\/RushianHaker\/DataParsingProgect\" rel=\"noopener noreferrer nofollow\">git<\/a> \u0438 <a href=\"https:\/\/t.me\/l_i_m_k_o_r_n\" rel=\"noopener noreferrer nofollow\">\u0422\u0413<\/a><\/p>\n<\/div>\n<\/details>\n<h4>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 \u0447\u0438\u0441\u0442\u043a\u0438 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u043e\u0432:<\/h4>\n<p>\u041f\u0435\u0440\u0432\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c build.gradle \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438<\/p>\n<details class=\"spoiler\">\n<summary>build.gradle<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\">buildscript { repositories { mavenCentral() } }  plugins { id 'org.springframework.boot' version '2.5.2' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' }  group = 'com.parsing' version = '0.0.1-SNAPSHOT' sourceCompatibility = '11'  configurations { compileOnly { extendsFrom annotationProcessor } }  repositories { mavenCentral() }  dependencies { implementation 'org.springframework.boot:spring-boot-starter-web:2.6.2' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5' implementation 'org.postgresql:postgresql:42.3.1' implementation 'org.projectlombok:lombok:1.18.22'  compileOnly 'org.projectlombok:lombok:1.18.22' annotationProcessor 'org.projectlombok:lombok:1.18.22'  testImplementation 'org.springframework.boot:spring-boot-starter-test' }  test { useJUnitPlatform() }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 application.properties<\/p>\n<details class=\"spoiler\">\n<summary>application.properties<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\"># connected to JDBC # setup spring.datasource spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql:\/\/localhost:5432\/change-me spring.datasource.username=change-me spring.datasource.password=change-me spring.datasource.hikari.connection-timeout=30000 spring.datasource.hikari.idle-timeout=60000 spring.datasource.hikari.maximum-pool-size=120  # setup hibernate spring.jpa.show-sql=true spring.jpa.generate-ddl=true spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.proc.param_null_passing=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0425\u043e\u0440\u043e\u0448\u043e, \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0431\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0435\u0433\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/783\/403\/51b\/78340351b6d91f7f339f71455fd6b7cd.png\" alt=\"\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\" title=\"\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\" width=\"379\" height=\"732\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/783\/403\/51b\/78340351b6d91f7f339f71455fd6b7cd.png\"\/><figcaption>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/figcaption><\/figure>\n<p>\u041f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<ul>\n<li>\n<p>controller &#8212; \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n<\/li>\n<li>\n<p>model &#8212; \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>repository &#8212; \u043b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0411\u0414<\/p>\n<\/li>\n<li>\n<p>service &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\u041d\u0430\u0440\u0435\u0437\u0430\u0435\u043c \u043e\u0432\u043e\u0449\u0438 \u0438 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u043c:<\/h4>\n<h4>\u041f\u0435\u0440\u0435\u0434 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<pre><code class=\"xml\">&lt;ValCurs Date=\"22.01.2022\" name=\"Foreign Currency Market\"> &lt;Valute ID=\"R01010\"> &lt;NumCode>036&lt;\/NumCode> &lt;CharCode>AUD&lt;\/CharCode> &lt;Nominal>1&lt;\/Nominal> &lt;Name>\u0410\u0432\u0441\u0442\u0440\u0430\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0434\u043e\u043b\u043b\u0430\u0440&lt;\/Name> &lt;Value>55,1633&lt;\/Value> &lt;\/Valute> &lt;Valute ID=\"R01020A\"> &lt;NumCode>944&lt;\/NumCode> &lt;CharCode>AZN&lt;\/CharCode> &lt;Nominal>1&lt;\/Nominal> &lt;Name>\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442&lt;\/Name> &lt;Value>45,1385&lt;\/Value> &lt;\/Valute> &lt;Valute ID=\"R01035\"> &lt;NumCode>826&lt;\/NumCode> &lt;CharCode>GBP&lt;\/CharCode> &lt;Nominal>1&lt;\/Nominal> &lt;Name>\u0424\u0443\u043d\u0442 \u0441\u0442\u0435\u0440\u043b\u0438\u043d\u0433\u043e\u0432 \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u0441\u0442\u0432\u0430&lt;\/Name> &lt;Value>103,9997&lt;\/Value> &lt;\/Valute> &lt;\/ValCurs><\/code><\/pre>\n<p>&#8212; \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u043f\u0438\u0448\u0435\u043c \u043e\u0431\u0449\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u043a\u0443\u0440\u0441\u0430 \u0432\u0430\u043b\u044e\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e \u0441\u0445\u0435\u043c\u0435 XML \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0430\u043b\u044e\u0442 (ValCurs), \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b (Valute)<\/p>\n<details class=\"spoiler\">\n<summary>CourseDto<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@XmlRootElement(name = \"ValCurs\") @XmlAccessorType(XmlAccessType.FIELD) public class CourseDto implements Serializable {      @XmlElement(name = \"Valute\")     private List&lt;CourseDtoOnce> valute;     @XmlElement(name = \"Date\")     private LocalDate date;      public List&lt;CourseDtoOnce> getValute() {         return valute;     }      @Override     public String toString() {         return \"CourseDto{\" +                 \"valute=\" + valute +                 \", date=\" + date +                 '}';     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>&#8212; \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043f\u0438\u0448\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u0430\u043b\u044e\u0442<\/p>\n<details class=\"spoiler\">\n<summary>CourseDtoOnce<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@Entity @XmlRootElement(name = \"Valute\") @XmlAccessorType(XmlAccessType.FIELD) public class CourseDtoOnce implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;      @XmlElement(name = \"NumCode\")     private String numCode;      @XmlElement(name = \"CharCode\")     private String charCode;      @XmlElement(name = \"Nominal\")     private int nominal;      @XmlElement(name = \"Name\")     private String name;      @XmlElement(name = \"Value\")     @JsonIgnore     @Transient     private String _Value;      private double value;      public String get_Value() {         return _Value;     }      public void setValue(double value) {         this.value = value;     }      @Override     public String toString() {         return \"\\n\" + name + \" (\" +                 \"numCode = \" + numCode + \", \" +                 \"charCode = \" + charCode + \", \" +                 \"nominal = \" + nominal + \", \" +                 \"value = \" + value + \")\";     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0411\u0414, \u043d\u0430\u043f\u0438\u0448\u0435\u043c repository<\/h4>\n<p>&#8212; \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442 JpaRepository \u043c\u0435\u0442\u043e\u0434\u044b, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u0432 \u0411\u0414 <\/p>\n<details class=\"spoiler\">\n<summary>CourseEntityRepository<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">public interface CourseEntityRepository extends JpaRepository&lt;CourseDtoOnce, Long> { }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>&#8212; CourseClient &#8212; \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u043c, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438 \u0432\u044b\u0434\u0430\u0447\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430<\/p>\n<details class=\"spoiler\">\n<summary>CourseClient<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@Component public class CourseClient {     public static final String URL = \"https:\/\/cbr.ru\/scripts\/XML_daily.asp?date_req=23\/01\/2022.xml\";      final RestTemplate restTemplate = new RestTemplate();       public List&lt;CourseDtoOnce> getCourses() {         CourseDto response = restTemplate.getForObject(URL, CourseDto.class);          if (response != null) {             response                     .getValute()                     .forEach(x -> {                         x.setValue(Double.parseDouble(x.get_Value().replace(\",\", \".\")));                         System.out.println(x);                     });              return response.getValute();         }          return null;     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>&#8212; CourseService &#8212; \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<details class=\"spoiler\">\n<summary>CourseService<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@Service @RequiredArgsConstructor public class CourseService {      private final CourseEntityRepository courseEntityRepository;     private final CourseClient courseClient;      public List&lt;CourseDtoOnce> findCourseInfo(){         return courseEntityRepository.saveAll(courseClient.getCourses());     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0443\u0442\u044c, \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0438\u0437 \u0432\u043d\u0435<\/h4>\n<p> &#8212; \u041f\u0438\u0448\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0432 \u0411\u0414 \u0437\u0430\u043f\u0438\u0441\u0435\u0439<\/p>\n<details class=\"spoiler\">\n<summary>CourseParsingController<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@RestController @RequiredArgsConstructor public class CourseParsingController {      private final CourseService courseService;      \/**      * \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0443\u0440\u0441\u043e\u0432 \u0432\u0430\u043b\u044e\u0442      *      * @return \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0443\u0440\u0441\u043e\u0432 \u0432\u0430\u043b\u044e\u0442      *\/     @GetMapping(value = \"\/getCourse\")     public String getListInformation() {         return courseService.findCourseInfo().toString();     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u0412 \u043a\u043e\u043d\u0446\u0435 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0432\u0441\u0435 \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h4>\n<details class=\"spoiler\">\n<summary>ParsingProjectApplication<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@SpringBootApplication public class ParsingProjectApplication { public static void main(String[] args) { SpringApplication.run(ParsingProjectApplication.class, args); } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u041c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0441\u0430\u043b\u0430\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e<\/h4>\n<p>&#8212; \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<details class=\"spoiler\">\n<summary>\u041b\u043e\u0433\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\">  .   ____          _            __ _ _  \/\\\\ \/ ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\ ( ( )\\___ | '_ | '_| | '_ \\\/ _` | \\ \\ \\ \\  \\\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )   '  |____| .__|_| |_|_| |_\\__, | \/ \/ \/ \/  =========|_|==============|___\/=\/_\/_\/_\/  :: Spring Boot ::                (v2.5.2)  2022-01-24 04:46:48.318  INFO 42654 --- [           main] com.ParsingProjectApplication            : No active profile set, falling back to default profiles: default 2022-01-24 04:46:49.028  INFO 42654 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2022-01-24 04:46:49.174  INFO 42654 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 142 ms. Found 1 JPA repository interfaces. 2022-01-24 04:46:49.455  INFO 42654 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http) 2022-01-24 04:46:49.460  INFO 42654 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat] 2022-01-24 04:46:49.460  INFO 42654 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat\/9.0.48] 2022-01-24 04:46:49.514  INFO 42654 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[\/]       : Initializing Spring embedded WebApplicationContext 2022-01-24 04:46:49.514  INFO 42654 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1158 ms 2022-01-24 04:46:49.677  INFO 42654 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default] 2022-01-24 04:46:49.696  INFO 42654 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.32.Final 2022-01-24 04:46:49.746  INFO 42654 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final} 2022-01-24 04:46:49.790  WARN 42654 --- [           main] com.zaxxer.hikari.HikariConfig           : HikariPool-1 - idleTimeout has been set but has no effect because the pool is operating as a fixed size pool. 2022-01-24 04:46:49.790  INFO 42654 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting... 2022-01-24 04:46:49.951  INFO 42654 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed. 2022-01-24 04:46:49.960  INFO 42654 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL94Dialect Hibernate:           drop table if exists course_dto_once cascade 2022-01-24 04:46:50.236  WARN 42654 --- [           main] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Warning Code: 0, SQLState: 00000 2022-01-24 04:46:50.236  WARN 42654 --- [           main] o.h.engine.jdbc.spi.SqlExceptionHelper   : table \"course_dto_once\" does not exist, skipping Hibernate:           drop sequence if exists hibernate_sequence 2022-01-24 04:46:50.237  WARN 42654 --- [           main] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Warning Code: 0, SQLState: 00000 2022-01-24 04:46:50.237  WARN 42654 --- [           main] o.h.engine.jdbc.spi.SqlExceptionHelper   : sequence \"hibernate_sequence\" does not exist, skipping Hibernate: create sequence hibernate_sequence start 1 increment 1 Hibernate:           create table course_dto_once (        id int8 not null,         char_code varchar(255),         name varchar(255),         nominal int4 not null,         num_code varchar(255),         value float8 not null,         primary key (id)     ) 2022-01-24 04:46:50.318  INFO 42654 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 2022-01-24 04:46:50.322  INFO 42654 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2022-01-24 04:46:50.480  WARN 42654 --- [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 2022-01-24 04:46:50.661  INFO 42654 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path '' 2022-01-24 04:46:50.668  INFO 42654 --- [           main] com.ParsingProjectApplication            : Started ParsingProjectApplication in 2.682 seconds (JVM running for 3.006)<\/code><\/pre>\n<\/div>\n<\/details>\n<p>&#8212; \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c DBeaver, \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u043f\u043e\u043b\u044f\u043c\u0438:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1d0\/d93\/db5\/1d0d93db5c07deb42f57be0904c2c5cf.png\" alt=\"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430\" title=\"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430\" width=\"1503\" height=\"924\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1d0\/d93\/db5\/1d0d93db5c07deb42f57be0904c2c5cf.png\"\/><figcaption>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430<\/figcaption><\/figure>\n<p>&#8212; \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Postman, \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043f\u043e\u043b\u0435 \u0434\u043b\u044f url &#8212; <a href=\"http:\/\/localhost:8080\/getCourse\" rel=\"noopener noreferrer nofollow\">http:\/\/localhost:8080\/getCourse<\/a> :<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1d7\/734\/d58\/1d7734d58b6340d9c0df55045ce34d26.png\" alt=\"GET\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 url - http:\/\/localhost:8080\/getCourse\" title=\"GET\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 url - http:\/\/localhost:8080\/getCourse\" width=\"1847\" height=\"1048\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1d7\/734\/d58\/1d7734d58b6340d9c0df55045ce34d26.png\"\/><figcaption>GET\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 url &#8212; http:\/\/localhost:8080\/getCourse<\/figcaption><\/figure>\n<p>&#8212; \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0441\u0438\u043d\u0438\u044e \u043a\u043d\u043e\u043f\u043a\u0443 &#171;Send&#187; \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u043e\u0442\u0432\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043a\u0443\u0440\u0441\u0435 \u0432\u0430\u043b\u044e\u0442, \u043d\u0430 23\/01\/2022:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/422\/6bd\/875\/4226bd875034aed82e8b3e480b984b08.png\" alt=\"\u041a\u0443\u0440\u0441 \u0432\u0430\u043b\u044e\u0442 \u043d\u0430 23\/01\/2022\" title=\"\u041a\u0443\u0440\u0441 \u0432\u0430\u043b\u044e\u0442 \u043d\u0430 23\/01\/2022\" width=\"1843\" height=\"1052\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/422\/6bd\/875\/4226bd875034aed82e8b3e480b984b08.png\"\/><figcaption>\u041a\u0443\u0440\u0441 \u0432\u0430\u043b\u044e\u0442 \u043d\u0430 23\/01\/2022<\/figcaption><\/figure>\n<p> &#8212; \u0422\u0430\u043a \u0436\u0435 \u043a\u0443\u0440\u0441\u0430\u043c\u0438 \u0432\u0430\u043b\u044e\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043b\u0430\u0441\u044c \u0438 \u0411\u0414:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9d4\/30b\/c5d\/9d430bc5df1ae5b298cd3b9e4beab227.png\" alt=\"\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u0430\u044f \u043a\u0443\u0440\u0441\u0430\u043c\u0438 \u0432\u0430\u043b\u044e\u0442 \u0411\u0414\" title=\"\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u0430\u044f \u043a\u0443\u0440\u0441\u0430\u043c\u0438 \u0432\u0430\u043b\u044e\u0442 \u0411\u0414\" width=\"1502\" height=\"919\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9d4\/30b\/c5d\/9d430bc5df1ae5b298cd3b9e4beab227.png\"\/><figcaption>\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u0430\u044f \u043a\u0443\u0440\u0441\u0430\u043c\u0438 \u0432\u0430\u043b\u044e\u0442 \u0411\u0414<\/figcaption><\/figure>\n<details class=\"spoiler\">\n<summary>\u041b\u043e\u0433\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\">  .   ____          _            __ _ _  \/\\\\ \/ ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\ ( ( )\\___ | '_ | '_| | '_ \\\/ _` | \\ \\ \\ \\  \\\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )   '  |____| .__|_| |_|_| |_\\__, | \/ \/ \/ \/  =========|_|==============|___\/=\/_\/_\/_\/  :: Spring Boot ::                (v2.5.2)  2022-01-24 04:46:48.318  INFO 42654 --- [           main] com.ParsingProjectApplication            : No active profile set, falling back to default profiles: default 2022-01-24 04:46:49.028  INFO 42654 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2022-01-24 04:46:49.174  INFO 42654 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 142 ms. Found 1 JPA repository interfaces. 2022-01-24 04:46:49.455  INFO 42654 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http) 2022-01-24 04:46:49.460  INFO 42654 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat] 2022-01-24 04:46:49.460  INFO 42654 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat\/9.0.48] 2022-01-24 04:46:49.514  INFO 42654 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[\/]       : Initializing Spring embedded WebApplicationContext 2022-01-24 04:46:49.514  INFO 42654 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1158 ms 2022-01-24 04:46:49.677  INFO 42654 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default] 2022-01-24 04:46:49.696  INFO 42654 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.32.Final 2022-01-24 04:46:49.746  INFO 42654 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final} 2022-01-24 04:46:49.790  WARN 42654 --- [           main] com.zaxxer.hikari.HikariConfig           : HikariPool-1 - idleTimeout has been set but has no effect because the pool is operating as a fixed size pool. 2022-01-24 04:46:49.790  INFO 42654 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting... 2022-01-24 04:46:49.951  INFO 42654 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed. 2022-01-24 04:46:49.960  INFO 42654 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL94Dialect Hibernate:           drop table if exists course_dto_once cascade 2022-01-24 04:46:50.236  WARN 42654 --- [           main] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Warning Code: 0, SQLState: 00000 2022-01-24 04:46:50.236  WARN 42654 --- [           main] o.h.engine.jdbc.spi.SqlExceptionHelper   : table \"course_dto_once\" does not exist, skipping Hibernate:           drop sequence if exists hibernate_sequence 2022-01-24 04:46:50.237  WARN 42654 --- [           main] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Warning Code: 0, SQLState: 00000 2022-01-24 04:46:50.237  WARN 42654 --- [           main] o.h.engine.jdbc.spi.SqlExceptionHelper   : sequence \"hibernate_sequence\" does not exist, skipping Hibernate: create sequence hibernate_sequence start 1 increment 1 Hibernate:           create table course_dto_once (        id int8 not null,         char_code varchar(255),         name varchar(255),         nominal int4 not null,         num_code varchar(255),         value float8 not null,         primary key (id)     ) 2022-01-24 04:46:50.318  INFO 42654 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 2022-01-24 04:46:50.322  INFO 42654 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2022-01-24 04:46:50.480  WARN 42654 --- [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 2022-01-24 04:46:50.661  INFO 42654 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path '' 2022-01-24 04:46:50.668  INFO 42654 --- [           main] com.ParsingProjectApplication            : Started ParsingProjectApplication in 2.682 seconds (JVM running for 3.006) 2022-01-24 04:52:00.787  INFO 42654 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[\/]       : Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-01-24 04:52:00.788  INFO 42654 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet' 2022-01-24 04:52:00.788  INFO 42654 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 0 ms  \u0410\u0432\u0441\u0442\u0440\u0430\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0434\u043e\u043b\u043b\u0430\u0440 (numCode = 036, charCode = AUD, nominal = 1, value = 55.1633)  \u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442 (numCode = 944, charCode = AZN, nominal = 1, value = 45.1385)  \u0424\u0443\u043d\u0442 \u0441\u0442\u0435\u0440\u043b\u0438\u043d\u0433\u043e\u0432 \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u0441\u0442\u0432\u0430 (numCode = 826, charCode = GBP, nominal = 1, value = 103.9997)  \u0410\u0440\u043c\u044f\u043d\u0441\u043a\u0438\u0445 \u0434\u0440\u0430\u043c\u043e\u0432 (numCode = 051, charCode = AMD, nominal = 100, value = 15.9539)  \u0411\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0440\u0443\u0431\u043b\u044c (numCode = 933, charCode = BYN, nominal = 1, value = 29.8058)  \u0411\u043e\u043b\u0433\u0430\u0440\u0441\u043a\u0438\u0439 \u043b\u0435\u0432 (numCode = 975, charCode = BGN, nominal = 1, value = 44.4607)  \u0411\u0440\u0430\u0437\u0438\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0435\u0430\u043b (numCode = 986, charCode = BRL, nominal = 1, value = 14.1505)  \u0412\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u0438\u0445 \u0444\u043e\u0440\u0438\u043d\u0442\u043e\u0432 (numCode = 348, charCode = HUF, nominal = 100, value = 24.35)  \u0413\u043e\u043d\u043a\u043e\u043d\u0433\u0441\u043a\u0438\u0445 \u0434\u043e\u043b\u043b\u0430\u0440\u043e\u0432 (numCode = 344, charCode = HKD, nominal = 10, value = 98.4699)  \u0414\u0430\u0442\u0441\u043a\u0430\u044f \u043a\u0440\u043e\u043d\u0430 (numCode = 208, charCode = DKK, nominal = 1, value = 11.6842)  \u0414\u043e\u043b\u043b\u0430\u0440 \u0421\u0428\u0410 (numCode = 840, charCode = USD, nominal = 1, value = 76.6903)  \u0415\u0432\u0440\u043e (numCode = 978, charCode = EUR, nominal = 1, value = 86.9054)  \u0418\u043d\u0434\u0438\u0439\u0441\u043a\u0438\u0445 \u0440\u0443\u043f\u0438\u0439 (numCode = 356, charCode = INR, nominal = 10, value = 10.2985)  \u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0441\u043a\u0438\u0445 \u0442\u0435\u043d\u0433\u0435 (numCode = 398, charCode = KZT, nominal = 100, value = 17.5815)  \u041a\u0430\u043d\u0430\u0434\u0441\u043a\u0438\u0439 \u0434\u043e\u043b\u043b\u0430\u0440 (numCode = 124, charCode = CAD, nominal = 1, value = 61.2102)  \u041a\u0438\u0440\u0433\u0438\u0437\u0441\u043a\u0438\u0445 \u0441\u043e\u043c\u043e\u0432 (numCode = 417, charCode = KGS, nominal = 100, value = 90.427)  \u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 \u044e\u0430\u043d\u044c (numCode = 156, charCode = CNY, nominal = 1, value = 12.0972)  \u041c\u043e\u043b\u0434\u0430\u0432\u0441\u043a\u0438\u0445 \u043b\u0435\u0435\u0432 (numCode = 498, charCode = MDL, nominal = 10, value = 42.4055)  \u041d\u043e\u0440\u0432\u0435\u0436\u0441\u043a\u0438\u0445 \u043a\u0440\u043e\u043d (numCode = 578, charCode = NOK, nominal = 10, value = 86.796)  \u041f\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0437\u043b\u043e\u0442\u044b\u0439 (numCode = 985, charCode = PLN, nominal = 1, value = 19.2264)  \u0420\u0443\u043c\u044b\u043d\u0441\u043a\u0438\u0439 \u043b\u0435\u0439 (numCode = 946, charCode = RON, nominal = 1, value = 17.5847)  \u0421\u0414\u0420 (\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f) (numCode = 960, charCode = XDR, nominal = 1, value = 107.5497)  \u0421\u0438\u043d\u0433\u0430\u043f\u0443\u0440\u0441\u043a\u0438\u0439 \u0434\u043e\u043b\u043b\u0430\u0440 (numCode = 702, charCode = SGD, nominal = 1, value = 56.9722)  \u0422\u0430\u0434\u0436\u0438\u043a\u0441\u043a\u0438\u0445 \u0441\u043e\u043c\u043e\u043d\u0438 (numCode = 972, charCode = TJS, nominal = 10, value = 67.8976)  \u0422\u0443\u0440\u0435\u0446\u043a\u0438\u0445 \u043b\u0438\u0440 (numCode = 949, charCode = TRY, nominal = 10, value = 57.1544)  \u041d\u043e\u0432\u044b\u0439 \u0442\u0443\u0440\u043a\u043c\u0435\u043d\u0441\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442 (numCode = 934, charCode = TMT, nominal = 1, value = 21.9429)  \u0423\u0437\u0431\u0435\u043a\u0441\u043a\u0438\u0445 \u0441\u0443\u043c\u043e\u0432 (numCode = 860, charCode = UZS, nominal = 10000, value = 70.7797)  \u0423\u043a\u0440\u0430\u0438\u043d\u0441\u043a\u0438\u0445 \u0433\u0440\u0438\u0432\u0435\u043d (numCode = 980, charCode = UAH, nominal = 10, value = 27.0692)  \u0427\u0435\u0448\u0441\u043a\u0438\u0445 \u043a\u0440\u043e\u043d (numCode = 203, charCode = CZK, nominal = 10, value = 35.819)  \u0428\u0432\u0435\u0434\u0441\u043a\u0438\u0445 \u043a\u0440\u043e\u043d (numCode = 752, charCode = SEK, nominal = 10, value = 83.537)  \u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u043a\u0438\u0439 \u0444\u0440\u0430\u043d\u043a (numCode = 756, charCode = CHF, nominal = 1, value = 83.8787)  \u042e\u0436\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0445 \u0440\u044d\u043d\u0434\u043e\u0432 (numCode = 710, charCode = ZAR, nominal = 10, value = 50.6156)  \u0412\u043e\u043d \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0438 \u041a\u043e\u0440\u0435\u044f (numCode = 410, charCode = KRW, nominal = 1000, value = 64.3418)  \u042f\u043f\u043e\u043d\u0441\u043a\u0438\u0445 \u0438\u0435\u043d (numCode = 392, charCode = JPY, nominal = 100, value = 67.3165) Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      select         nextval ('hibernate_sequence') Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) Hibernate:      insert      into         course_dto_once         (char_code, name, nominal, num_code, value, id)      values         (?, ?, ?, ?, ?, ?) <\/code><\/pre>\n<\/div>\n<\/details>\n<blockquote>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0443 \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e<br \/>\u0440\u0430\u0437\u0430, \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e, \u0432\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e. <\/p>\n<\/blockquote>\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\/656575\/\"> https:\/\/habr.com\/ru\/post\/656575\/<\/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_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div class=\"persona\" persona=\"true\">\n<h5 class=\"persona__heading\" persona=\"true\">\u0418\u0432\u0430\u043d\u043e\u0432 \u041c\u0430\u043a\u0441\u0438\u043c<\/h5>\n<p persona=\"true\" class=\"persona__text\">\u041c\u043b\u0430\u0434\u0448\u0438\u0439 Java \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442<\/p>\n<\/div>\n<h4>\u0418\u043b\u0438 \u0440\u0435\u0446\u0435\u043f\u0442 \u043f\u043e \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0430\u043b\u0430\u0442\u0430 \u00ab\u041f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u043f\u0430\u0440\u0441\u0435\u0440\u00bb<\/h4>\n<figure class=\"bordered\"><figcaption>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a &#8212; http:\/\/memesmix.net\/meme\/95ipef<\/figcaption><\/figure>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f &#8212; \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u043c, \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u044b\u043b\u0438 \u0432\u0437\u044f\u0442\u044b XML \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0441\u0430\u0439\u0442\u0430 <a href=\"https:\/\/cbr.ru\/scripts\/XML_daily.asp?date_req=23\/01\/2022.xml\" rel=\"noopener noreferrer nofollow\">\u0426\u0435\u043d\u0442\u0440 \u0411\u0430\u043d\u043a\u0430<\/a>.<\/p>\n<blockquote>\n<p><strong>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b &#8212; Spring Boot, PostgreSQL \u0438 Hibernate.<\/strong><\/p>\n<\/blockquote>\n<h4>\u0418\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u044b:<\/h4>\n<ol>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Spring Boot \u043f\u0440\u043e\u0435\u043a\u0442, \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/start.spring.io\/\" rel=\"noopener noreferrer nofollow\">Spring Initializr<\/a>. (\u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f <a href=\"https:\/\/gradle.org\/install\/\" rel=\"noopener noreferrer nofollow\">Gradle<\/a>)<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.postgresql.org\/download\/\" rel=\"noopener noreferrer nofollow\">PostgreSQL<\/a> (\u0434\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e &#8212; <a href=\"https:\/\/dbeaver.io\/download\/\" rel=\"noopener noreferrer nofollow\">DBeaver<\/a>)<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.postman.com\/downloads\/\" rel=\"noopener noreferrer nofollow\">Postman<\/a> &#8212; \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441 \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041f\u0440\u043e\u0448\u0443 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 &#8212; \u0432\u043e\u0442 \u043c\u043e\u0439 <a href=\"https:\/\/github.com\/RushianHaker\/DataParsingProgect\" rel=\"noopener noreferrer nofollow\">git<\/a> \u0438 <a href=\"https:\/\/t.me\/l_i_m_k_o_r_n\" rel=\"noopener noreferrer nofollow\">\u0422\u0413<\/a><\/p>\n<\/div>\n<\/details>\n<h4>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 \u0447\u0438\u0441\u0442\u043a\u0438 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u043e\u0432:<\/h4>\n<p>\u041f\u0435\u0440\u0432\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c build.gradle \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438<\/p>\n<details class=\"spoiler\">\n<summary>build.gradle<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\">buildscript { repositories { mavenCentral() } }  plugins { id 'org.springframework.boot' version '2.5.2' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' }  group = 'com.parsing' version = '0.0.1-SNAPSHOT' sourceCompatibility = '11'  configurations { compileOnly { extendsFrom annotationProcessor } }  repositories { mavenCentral() }  dependencies { implementation 'org.springframework.boot:spring-boot-starter-web:2.6.2' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5' implementation 'org.postgresql:postgresql:42.3.1' implementation 'org.projectlombok:lombok:1.18.22'  compileOnly 'org.projectlombok:lombok:1.18.22' annotationProcessor 'org.projectlombok:lombok:1.18.22'  testImplementation 'org.springframework.boot:spring-boot-starter-test' }  test { useJUnitPlatform() }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 application.properties<\/p>\n<details class=\"spoiler\">\n<summary>application.properties<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\"># connected to JDBC # setup spring.datasource spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql:\/\/localhost:5432\/change-me spring.datasource.username=change-me spring.datasource.password=change-me spring.datasource.hikari.connection-timeout=30000 spring.datasource.hikari.idle-timeout=60000 spring.datasource.hikari.maximum-pool-size=120  # setup hibernate spring.jpa.show-sql=true spring.jpa.generate-ddl=true spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.proc.param_null_passing=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0425\u043e\u0440\u043e\u0448\u043e, \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0431\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0435\u0433\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<figure class=\"\"><figcaption>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/figcaption><\/figure>\n<p>\u041f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<ul>\n<li>\n<p>controller &#8212; \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n<\/li>\n<li>\n<p>model &#8212; \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>repository &#8212; \u043b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0411\u0414<\/p>\n<\/li>\n<li>\n<p>service &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\u041d\u0430\u0440\u0435\u0437\u0430\u0435\u043c \u043e\u0432\u043e\u0449\u0438 \u0438 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u043c:<\/h4>\n<h4>\u041f\u0435\u0440\u0435\u0434 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<pre><code class=\"xml\">&lt;ValCurs Date=\"22.01.2022\" name=\"Foreign Currency Market\"> &lt;Valute ID=\"R01010\"> &lt;NumCode>036&lt;\/NumCode> &lt;CharCode>AUD&lt;\/CharCode> &lt;Nominal>1&lt;\/Nominal> &lt;Name>\u0410\u0432\u0441\u0442\u0440\u0430\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0434\u043e\u043b\u043b\u0430\u0440&lt;\/Name> &lt;Value>55,1633&lt;\/Value> &lt;\/Valute> &lt;Valute ID=\"R01020A\"> &lt;NumCode>944&lt;\/NumCode> &lt;CharCode>AZN&lt;\/CharCode> &lt;Nominal>1&lt;\/Nominal> &lt;Name>\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d\u0441\u043a\u0438\u0439 \u043c\u0430\u043d\u0430\u0442&lt;\/Name> &lt;Value>45,1385&lt;\/Value> &lt;\/Valute> &lt;Valute ID=\"R01035\"> &lt;NumCode>826&lt;\/NumCode> &lt;CharCode>GBP&lt;\/CharCode> &lt;Nominal>1&lt;\/Nominal> &lt;Name>\u0424\u0443\u043d\u0442 \u0441\u0442\u0435\u0440\u043b\u0438\u043d\u0433\u043e\u0432 \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u0441\u0442\u0432\u0430&lt;\/Name> &lt;Value>103,9997&lt;\/Value> &lt;\/Valute> &lt;\/ValCurs><\/code><\/pre>\n<p>&#8212; \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u043f\u0438\u0448\u0435\u043c \u043e\u0431\u0449\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u043a\u0443\u0440\u0441\u0430 \u0432\u0430\u043b\u044e\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e \u0441\u0445\u0435\u043c\u0435 XML \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0430\u043b\u044e\u0442 (ValCurs), \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b (Valute)<\/p>\n<details class=\"spoiler\">\n<summary>CourseDto<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@XmlRootElement(name = \"ValCurs\") @XmlAccessorType(XmlAccessType.FIELD) public class CourseDto implements Serializable {      @XmlElement(name = \"Valute\")     private List&lt;CourseDtoOnce> valute;     @XmlElement(name = \"Date\")     private LocalDate date;      public List&lt;CourseDtoOnce> getValute() {         return valute;     }      @Override     public String toString() {         return \"CourseDto{\" +                 \"valute=\" + valute +                 \", date=\" + date +                 '}';     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>&#8212; \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043f\u0438\u0448\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u0430\u043b\u044e\u0442<\/p>\n<details class=\"spoiler\">\n<summary>CourseDtoOnce<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@Entity @XmlRootElement(name = \"Valute\") @XmlAccessorType(XmlAccessType.FIELD) public class CourseDtoOnce implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;      @XmlElement(name = \"NumCode\")     private String numCode;      @XmlElement(name = \"CharCode\")     private String charCode;      @XmlElement(name = \"Nominal\")     private int nominal;      @XmlElement(name = \"Name\")     private String name;      @XmlElement(name = \"Value\")     @JsonIgnore     @Transient     private String _Value;      private double value;      public String get_Value() {         return _Value;     }      public void setValue(double value) {         this.value = value;     }      @Override     public String toString() {         return \"\\n\" + name + \" (\" +                 \"numCode = \" + numCode + \", \" +                 \"charCode = \" + charCode + \", \" +                 \"nominal = \" + nominal + \", \" +                 \"value = \" + value + \")\";     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0411\u0414, \u043d\u0430\u043f\u0438\u0448\u0435\u043c repository<\/h4>\n<p>&#8212; \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442 JpaRepository \u043c\u0435\u0442\u043e\u0434\u044b, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u0432 \u0411\u0414 <\/p>\n<details class=\"spoiler\">\n<summary>CourseEntityRepository<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">public interface CourseEntityRepository extends JpaRepository&lt;CourseDtoOnce, Long> { }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>&#8212; CourseClient &#8212; \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u043c, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438 \u0432\u044b\u0434\u0430\u0447\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430<\/p>\n<details class=\"spoiler\">\n<summary>CourseClient<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@Component public class CourseClient {     public static final String URL = \"https:\/\/cbr.ru\/scripts\/XML_daily.asp?date_req=23\/01\/2022.xml\";      final RestTemplate restTemplate = new RestTemplate();       public List&lt;CourseDtoOnce> getCourses() {         CourseDto response = restTemplate.getForObject(URL, CourseDto.class);          if (response != null) {             response                     .getValute()                     .forEach(x -> {                         x.setValue(Double.parseDouble(x.get_Value().replace(\",\", \".\")));                         System.out.println(x);                     });              return response.getValute();         }          return null;     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<p>&#8212; CourseService &#8212; \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<details class=\"spoiler\">\n<summary>CourseService<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@Service @RequiredArgsConstructor public class CourseService {      private final CourseEntityRepository courseEntityRepository;     private final CourseClient courseClient;      public List&lt;CourseDtoOnce> findCourseInfo(){         return courseEntityRepository.saveAll(courseClient.getCourses());     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0443\u0442\u044c, \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0438\u0437 \u0432\u043d\u0435<\/h4>\n<p> &#8212; \u041f\u0438\u0448\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0432 \u0411\u0414 \u0437\u0430\u043f\u0438\u0441\u0435\u0439<\/p>\n<details class=\"spoiler\">\n<summary>CourseParsingController<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@RestController @RequiredArgsConstructor public class CourseParsingController {      private final CourseService courseService;      \/**      * \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0443\u0440\u0441\u043e\u0432 \u0432\u0430\u043b\u044e\u0442      *      * @return \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0443\u0440\u0441\u043e\u0432 \u0432\u0430\u043b\u044e\u0442      *\/     @GetMapping(value = \"\/getCourse\")     public String getListInformation() {         return courseService.findCourseInfo().toString();     } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u0412 \u043a\u043e\u043d\u0446\u0435 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0432\u0441\u0435 \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h4>\n<details class=\"spoiler\">\n<summary>ParsingProjectApplication<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">@SpringBootApplication public class ParsingProjectApplication { public static void main(String[] args) { SpringApplication.run(ParsingProjectApplication.class, args); } }<\/code><\/pre>\n<\/div>\n<\/details>\n<h4>\u041c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0441\u0430\u043b\u0430\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e<\/h4>\n<p>&#8212; \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<details class=\"spoiler\">\n<summary>\u041b\u043e\u0433\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"yaml\">  .   ____          _            __ _ _  \/\\\\ \/ ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\ ( ( )\\___ | '_ | '_| | '_ \\\/ _` | \\ \\ \\ \\  \\\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )   '  |____| .__|_| |_|_| |_\\__, | \/ \/ \/ \/  =========|_|==============|___\/=\/_\/_\/_\/  :: Spring Boot ::                (v2.5.2)  2022-01-24 04:46:48.318  INFO 42654 --- [           main] com.ParsingProjectApplication            : No active profile set, falling back to default profiles: default 2022-01-24 04:46:49.028  INFO 42654 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2022-01-24 04:46:49.174  INFO 42654 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 142 ms. Found 1 JPA repository interfaces. 2022-01-24 04:46:49.455  INFO 42654 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http) 2022-01-24 04:46:49.460  INFO 42654 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat] 2022-01-24 04:46:49.460  INFO 42654 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat\/9.0.48] 2022-01-24 04:46:49.514  INFO 42654 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[\/]       : Initializing Spring embedded WebApplicationContext 2022-01-24 04:46:49.514  INFO 42654 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1158 ms 2022-01-24 04:46:49.677  INFO 42654 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default] 2022-01-24 04:46:49.696  INFO 42654 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.32.Final 2022-01-24 04:46:49.746  INFO 42654 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final} 2022-01-24 04:46:49.790  WARN 42654 --- [           main] com.zaxxer.hikari.HikariConfig           : HikariPool-1 - idleTimeout has been set but has no effect because the pool is operating as a fixed size pool. 2022-01-24 04:46:49.790  INFO 42654 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting... 2022-01-24 04:46:49.951  INFO 42654 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed. 2022-01-24 04:46:49.960  INFO 42654 --- [           main] org.hibernate.dialect.Dialect    <\/code><\/pre>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-330865","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/330865","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=330865"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/330865\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=330865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=330865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=330865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}