修复主页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; package com.kob.backend.config;
/**
* @author zhangfp
*/
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import javax.servlet.*; import javax.servlet.*;
@ -10,6 +6,9 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
/**
* @author zfp
*/
@Configuration @Configuration
public class CorsConfig implements Filter { public class CorsConfig implements Filter {
@Override @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.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder;
/** /**
* @author new * @author zfp
*/ */
@Configuration @Configuration
@EnableWebSecurity @EnableWebSecurity
public class SecurityConfig { public class SecurityConfig {

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

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

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

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

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

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

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

Loading…
Cancel
Save