修复主页index和author注解

master
barney 2 years ago
parent 8018aa025c
commit c582d9f164
  1. 7
      backend/src/main/java/com/kob/backend/config/CorsConfig.java
  2. 4
      backend/src/main/java/com/kob/backend/config/SecurityConfig.java
  3. 2
      backend/src/main/java/com/kob/backend/controller/pk/BotInfoController.java
  4. 5
      backend/src/main/java/com/kob/backend/controller/pk/IndexController.java
  5. 5
      backend/src/main/java/com/kob/backend/controller/pojo/User.java
  6. 3
      backend/src/main/java/com/kob/backend/controller/service/impl/UserDetailsServiceImpl.java
  7. 3
      backend/src/main/java/com/kob/backend/controller/service/impl/utils/UserDetailsImpl.java
  8. 3
      backend/src/main/java/com/kob/backend/controller/user/UserController.java
  9. 3
      backend/src/main/java/com/kob/backend/mapper/UserMapper.java

@ -1,8 +1,4 @@
package com.kob.backend.config;
/**
* @author zhangfp
*/
import org.springframework.context.annotation.Configuration;
import javax.servlet.*;
@ -10,6 +6,9 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* @author zfp
*/
@Configuration
public class CorsConfig implements Filter {
@Override

@ -6,9 +6,11 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
/**
* @author new
* @author zfp
*/
@Configuration
@EnableWebSecurity
public class SecurityConfig {

@ -9,7 +9,7 @@ import java.util.List;
import java.util.Map;
/**
* @author zhangfp
* @author zfp
*/
@RestController
@RequestMapping("/pk/")

@ -3,13 +3,14 @@ package com.kob.backend.controller.pk;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author zfp
*/
@Controller
@RequestMapping("/pk/")
public class IndexController {
@RequestMapping("index/")
@RequestMapping("/")
public String getIndex(){
return "pk/index.html";
}

@ -4,10 +4,11 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author new
* @author zfp
*/
@Data
@NoArgsConstructor
@AllArgsConstructor

@ -10,8 +10,9 @@ import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;
/**
* @author new
* @author zfp
*/
@Service
public class UserDetailsServiceImpl implements UserDetailsService {

@ -11,9 +11,8 @@ import org.springframework.security.core.userdetails.UserDetailsService;
import java.util.Collection;
/**
* @author new
* @author zfp
*/
@Data
@NoArgsConstructor
@AllArgsConstructor

@ -14,9 +14,8 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author new
* @author zfp
*/
@RestController
public class UserController {

@ -5,8 +5,9 @@ import com.kob.backend.controller.pojo.User;
import org.apache.ibatis.annotations.Mapper;
/**
* @author new
* @author zfp
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

Loading…
Cancel
Save