stackoverflow answer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.main.web-application-type=none | |
spring.datasource.driver-class-name=org.postgresql.Driver | |
spring.datasource.url=jdbc:postgresql://localhost:5432/test | |
spring.datasource.username=postgres | |
spring.datasource.password=postgres | |
spring.jpa.show-sql=true | |
spring.jpa.hibernate.ddl-auto=update | |
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL95Dialect | |
//fixed exception method org.postgresql.jdbc.PgConnection.createClob() not implemented | |
//Исправляют ошибку Метод org.postgresql.jdbc.PgConnection.createClob() ещё не реализован | |
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults: false | |
spring.jpa.properties.hibernate.jdbc.non_contextual_creation: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>test</groupId> | |
<artifactId>test</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.1.2.RELEASE</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> | |
<properties> | |
<java.version>1.8</java.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-data-jpa</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<version>2.1.3.RELEASE</version> | |
<configuration> | |
<executable>true</executable> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Repository | |
public interface PortRepository extends JpaRepository<Port, Integer> { | |
Port findByName(String name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment