remove bom

This commit is contained in:
王子琦
2026-01-13 17:15:10 +08:00
parent 0387b43083
commit 8572733b2e
80 changed files with 82 additions and 82 deletions

View File

@@ -1,4 +1,4 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.toyshop</groupId>

View File

@@ -1,4 +1,4 @@
package com.toyshop;
package com.toyshop;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@@ -1,4 +1,4 @@
package com.toyshop.config;
package com.toyshop.config;
import com.toyshop.entity.User;
import com.toyshop.entity.UserRole;

View File

@@ -1,4 +1,4 @@
package com.toyshop.config;
package com.toyshop.config;
import com.toyshop.dto.ApiResponse;
import org.springframework.http.HttpStatus;

View File

@@ -1,4 +1,4 @@
package com.toyshop.config;
package com.toyshop.config;
import com.toyshop.security.JwtAuthenticationFilter;
import org.springframework.context.annotation.Bean;

View File

@@ -1,4 +1,4 @@
package com.toyshop.controller;
package com.toyshop.controller;
import com.toyshop.dto.*;
import com.toyshop.entity.User;

View File

@@ -1,4 +1,4 @@
package com.toyshop.controller;
package com.toyshop.controller;
import com.toyshop.dto.ApiResponse;
import com.toyshop.entity.Product;

View File

@@ -1,4 +1,4 @@
package com.toyshop.controller.admin;
package com.toyshop.controller.admin;
import com.toyshop.dto.*;
import com.toyshop.entity.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.controller.user;
package com.toyshop.controller.user;
import com.toyshop.dto.*;
import com.toyshop.entity.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotBlank;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
public class ApiResponse<T> {
private boolean success;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotBlank;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
public class AuthResponse {
private String token;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotBlank;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotNull;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotBlank;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotBlank;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotNull;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotBlank;
import java.math.BigDecimal;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotBlank;

View File

@@ -1,4 +1,4 @@
package com.toyshop.dto;
package com.toyshop.dto;
import jakarta.validation.constraints.NotNull;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;
import java.time.LocalDateTime;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;
import java.time.LocalDateTime;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;
import java.math.BigDecimal;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;
import java.math.BigDecimal;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
public enum OrderStatus {
PENDING_PAYMENT,

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;
import java.math.BigDecimal;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
import jakarta.persistence.*;
import java.time.LocalDateTime;

View File

@@ -1,4 +1,4 @@
package com.toyshop.entity;
package com.toyshop.entity;
public enum UserRole {
USER,

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.Address;
import com.toyshop.entity.User;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.Carousel;
import org.springframework.data.jpa.repository.JpaRepository;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.CartItem;
import com.toyshop.entity.User;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.Category;
import org.springframework.data.jpa.repository.JpaRepository;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.Notice;
import org.springframework.data.jpa.repository.JpaRepository;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.OrderItem;
import com.toyshop.entity.Order;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.Order;
import com.toyshop.entity.User;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.ProductImage;
import com.toyshop.entity.Product;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.Product;
import org.springframework.data.jpa.repository.JpaRepository;

View File

@@ -1,4 +1,4 @@
package com.toyshop.repository;
package com.toyshop.repository;
import com.toyshop.entity.User;
import com.toyshop.entity.UserRole;

View File

@@ -1,4 +1,4 @@
package com.toyshop.security;
package com.toyshop.security;
import com.toyshop.entity.User;
import com.toyshop.repository.UserRepository;

View File

@@ -1,4 +1,4 @@
package com.toyshop.security;
package com.toyshop.security;
import io.jsonwebtoken.Claims;
import jakarta.servlet.FilterChain;

View File

@@ -1,4 +1,4 @@
package com.toyshop.security;
package com.toyshop.security;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;

View File

@@ -1,4 +1,4 @@
package com.toyshop.service;
package com.toyshop.service;
import com.toyshop.dto.AuthRequest;
import com.toyshop.dto.RegisterRequest;

View File

@@ -1,4 +1,4 @@
package com.toyshop.service;
package com.toyshop.service;
import com.toyshop.entity.*;
import com.toyshop.repository.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.service;
package com.toyshop.service;
import com.toyshop.entity.*;
import com.toyshop.repository.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.service;
package com.toyshop.service;
import com.toyshop.entity.*;
import com.toyshop.repository.*;

View File

@@ -1,4 +1,4 @@
package com.toyshop.service;
package com.toyshop.service;
import com.toyshop.entity.User;
import com.toyshop.repository.UserRepository;

View File

@@ -1,8 +1,8 @@
spring:
spring:
datasource:
url: jdbc:mysql://localhost:3306/toyshop?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://localhost:3307/toyshop?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
username: root
password: root
password: qq5211314
jpa:
hibernate:
ddl-auto: update