Skip to content
Open
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
11 changes: 8 additions & 3 deletions UserFront/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.4.RELEASE</version>
<version>2.7.18</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<tomcat.version>9.0.98</tomcat.version>
</properties>

<dependencies>
Expand All @@ -46,8 +47,8 @@
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>

<dependency>
Expand All @@ -67,6 +68,10 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- CVE-2024-56337: Java 8/11 must run Tomcat with the canonical path cache disabled -->
<jvmArguments>-Dsun.io.useCanonCaches=false</jvmArguments>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public List<Appointment> findAll() {
}

public Appointment findAppointment(Long id) {
return appointmentDao.findOne(id);
return appointmentDao.findById(id).orElse(null);
}

public void confirmAppointment(Long id) {
Expand Down
4 changes: 4 additions & 0 deletions UserFront/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ spring.jpa.hibernate.ddl-auto = update
# Allows Hibernate to generate SQL optimized for a particular DBMS
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect

# Spring Boot 2.x defaults: keep the Boot 1.5 behaviour (circular SecurityConfig/UserService
# wiring, IDENTITY ids for GenerationType.AUTO so existing rows/ids are untouched).
spring.main.allow-circular-references=true
spring.jpa.hibernate.use-new-id-generator-mappings=false
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.userFront;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class UserFrontApplicationTests {

Expand Down