RELL-1 start ocr service

This commit is contained in:
Popov Aleksander 2024-02-03 08:51:16 +06:00
parent 15d465b68b
commit 1b29e38dbc
6 changed files with 152 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,6 +1,7 @@
# ---> Java # ---> Java
# Compiled class file # Compiled class file
*.class *.class
*.target
# Log file # Log file
*.log *.log
@ -24,3 +25,5 @@
hs_err_pid* hs_err_pid*
replay_pid* replay_pid*
#idea
*.idea

View File

@ -1,3 +1,3 @@
# ocr-rell-service # ocr-rell-service
"OCR-Rell-Service" онлайн-сервис по распознаванию текста, "OCR-Rell-Service" онлайн-сервис по распознаванию текста

123
pom.xml Normal file
View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ru.rell</groupId>
<artifactId>ocr-rell-service</artifactId>
<version>3.0.0.rc</version>
<properties>
<java.version>21</java.version>
<spring.version>3.2.2</spring.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.2</version>
</parent>
<developers>
<developer>
<id>PopovAA</id>
<name>Popov Alexander</name>
<email>h0c0kutaiiok@gmail.com</email>
</developer>
</developers>
<name>ocr-rell-service</name>
<description>Cервис по распознаванию текста</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>build-info</goal>
</goals>
<configuration>
<additionalProperties>
<java.target>${java.version}</java.target>
<time>${maven.build.timestamp}</time>
</additionalProperties>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.16.2</version>
<executions>
<execution>
<id>check-versions</id>
<goals>
<goal>display-dependency-updates</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,11 @@
package ru.rell;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class OcrApplication {
public static void main(String[] args) {
SpringApplication.run(OcrApplication.class, args);
}
}

View File

@ -0,0 +1,2 @@
server:
port: 8080

View File

@ -0,0 +1,12 @@
package ru.rell;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class OcrApplicationTests {
@Test
void contextLoads() {
}
}