パッケージ作りました

This commit is contained in:
2026-10-19 13:51:53 +09:00
parent c44e7b049c
commit 4d4aabdc72
38 changed files with 849 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BookRentApplication {
public static void main(String[] args) {
SpringApplication.run(BookRentApplication.class, args);
}
}

View File

@@ -0,0 +1,13 @@
package com.example.demo;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
public class ServletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(BookRentApplication.class);
}
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.common;
public class BusinessException {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.common;
public class Const {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.common;
public class LoginUser {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.config;
public class LoginCheckInterceptor {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.config;
public class WebConfig {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.controller;
public class AdminBookController {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.controller;
public class AdminLoanController {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.controller;
public class BookController {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.controller;
public class EmployeeController {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.controller;
public class GlobalExceptionHandler {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.controller;
public class LoanContorller {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.controller;
public class LoginController {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.controller;
public class MenuController {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.dto;
public class BorrowView {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.entity;
public class BookCollection {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.entity;
public class BorrowBook {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.entity;
public class Employee {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.form;
public class BookForm {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.form;
public class EmployeeForm {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.repository;
public class BookCollectionRepository {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.repository;
public class BorrowBookRepository {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.repository;
public class EmployeeRepository {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.service;
public class AuthService {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.service;
public class BookAdminService {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.service;
public class BookService {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.service;
public class EmployeeService {
}

View File

@@ -0,0 +1,5 @@
package com.example.demo.service;
public class LoanService {
}

View File

@@ -0,0 +1,13 @@
spring.application.name=book-rent
# --- MySQL (CREATE DATABASE.sql で作成した book_manage) ---
spring.datasource.url=jdbc:mysql://localhost:3306/book_manage?serverTimezone=Asia/Tokyo&characterEncoding=UTF-8
spring.datasource.username=bookuser
spring.datasource.password=Book2026
# テーブルはSQLで作成済み。JPAでは変更しない
spring.jpa.hibernate.ddl-auto=none
spring.jpa.open-in-view=false
spring.jpa.properties.hibernate.jdbc.time_zone=Asia/Tokyo
spring.thymeleaf.cache=false
server.servlet.session.timeout=30m

View File

@@ -0,0 +1,13 @@
package com.example.demo;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class BookRentApplicationTests {
@Test
void contextLoads() {
}
}