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