Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,10 @@ jdk_8_maven/cs/rest/original/spring-batch-rest/example/api/target
jdk_8_maven/cs/rest/original/spring-batch-rest/example/quartz-api/target
jdk_8_maven/em/embedded/rest/spring-batch-rest/target
jdk_8_maven/em/external/rest/spring-batch-rest/target
/jdk_17_maven/cs/rest/ohsome-api/target/
/jdk_17_maven/em/embedded/rest/ohsome-api/target/
/jdk_17_maven/em/external/rest/ohsome-api/target/

/jdk_17_maven/cs/rest/spring-rest-example/target/
/jdk_17_maven/em/embedded/rest/spring-rest-example/target/
/jdk_17_maven/em/external/rest/spring-rest-example/target/
1 change: 1 addition & 0 deletions jdk_17_maven/cs/rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<module>familie-ba-sak</module>
<module>tiltaksgjennomforing-api</module>
<module>ohsome-api</module>
<module>spring-rest-example</module>


<!-- TODO: need to solve issue with Google OAuth2 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.example</groupId>
<artifactId>project-api</artifactId>
<artifactId>spring-rest-example</artifactId>
<version>0.0.1</version>
<packaging>jar</packaging>

<name>project-api</name>
<name>spring-rest-example</name>
<description>project-api</description>

<parent>
Expand Down Expand Up @@ -60,14 +60,23 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<finalName>spring-rest-example</finalName>
<classifier>sut</classifier>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ spring:

## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
format_sql: true
# Hibernate ddl auto (create, create-drop, validate, update)
jpa:
properties:
hibernate:
ddl-auto: update
dialect: org.hibernate.dialect.MySQLDialect
format_sql: true
# Hibernate ddl auto (create, create-drop, validate, update)
hibernate:
ddl-auto: update

show-sql: true
show-sql: true
datasource:
url: jdbc:mysql://{YOUR_MSQL_SERVER}:3306/{DATABASE NAME}?useSSL=false
username: { YOUR_MYSQL_ID }
Expand Down