5 Commits

13 changed files with 113 additions and 104 deletions

View File

@@ -30,7 +30,7 @@
<properties>
<java.version>21</java.version>
</properties>
<dependencies>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
@@ -77,6 +77,10 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
@@ -124,4 +128,3 @@
</build>
</project>

View File

@@ -34,4 +34,5 @@ public class LoginCheckInterceptor implements HandlerInterceptor {
}
return true;
}
}

View File

@@ -1,4 +1,3 @@
package com.example.demo.controller;
import jakarta.servlet.http.HttpSession;

View File

@@ -105,4 +105,5 @@ public class Employee {
public void setDateUpdate(LocalDateTime v) {
this.dateUpdate = v;
}
}

View File

@@ -10,4 +10,5 @@ public interface EmployeeRepository extends JpaRepository<Employee, Integer> {
Optional<Employee> findByMailAddressAndFlgRetirement(String mailAddress, String flgRetirement);
Optional<Employee> findByMailAddress(String mailAddress);
}

View File

@@ -18,6 +18,9 @@ import com.example.demo.entity.Employee;
import com.example.demo.form.EmployeeForm;
import com.example.demo.repository.EmployeeRepository;
/** EMP-01:社員登録、EMP-02:社員編集 */
@Service
public class EmployeeService {
@@ -33,6 +36,7 @@ public class EmployeeService {
PasswordEncoder passwordEncoder) {
this.employeeRepository = employeeRepository;
this.passwordEncoder = passwordEncoder;
}
// ---------- 検索 ----------

View File

@@ -43,7 +43,7 @@ public class LoginAttemptService {
// ロック中なら何もしない
if (current != null && current.lockedUntil != null
&& now.isBefore(current.lockedUntil)) {
&& now.isBefore(current.lockedUntil)) {
return;
}