エラー解消後編集
This commit is contained in:
@@ -74,11 +74,6 @@
|
||||
<artifactId>spring-boot-starter-webmvc-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.example</groupId>
|
||||
<artifactId>HelloSpring</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.example.demo.repository;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@@ -8,4 +10,9 @@ import com.example.demo.entity.Borrow_booksEntity;
|
||||
@Repository
|
||||
public interface Borrow_BooksRepository extends JpaRepository<Borrow_booksEntity, Integer> {
|
||||
|
||||
/*
|
||||
* 申請者IDで検索
|
||||
* */
|
||||
Optional<Borrow_booksEntity> findByIdApplicant(Integer idApplicant);
|
||||
|
||||
}
|
||||
|
||||
@@ -25,13 +25,22 @@
|
||||
<div class="msgBox error" th:if="${messageError} != null">
|
||||
<span class="error" th:text="${messageError.message}"></span>
|
||||
</div>
|
||||
<trtable>
|
||||
<table>
|
||||
<tr>
|
||||
<th class="header">申請ID</th>
|
||||
<td>
|
||||
<input placeholder="申請ID"
|
||||
th:field="*{idRequest}"
|
||||
type="number"/>
|
||||
<label>
|
||||
<input placeholder="申請ID"
|
||||
th:field="*{idRequest}"
|
||||
type="number"/>
|
||||
</label>
|
||||
<label>
|
||||
<input class="readOnly"
|
||||
name="idRequest"
|
||||
readonly="readonly"
|
||||
th:value="*{idRequest}"
|
||||
type="number"/>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -157,6 +166,5 @@
|
||||
document.getElementById('dateRequest').selectedIndex = 0;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user