modify
This commit is contained in:
parent
c93ff88e0e
commit
1aeb2ba020
@ -4,6 +4,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import org.mybatis.spring.annotation.MapperScan;
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -13,6 +14,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
|||||||
@EnableScheduling
|
@EnableScheduling
|
||||||
@SpringBootApplication(scanBasePackages = "top.baogutang.*")
|
@SpringBootApplication(scanBasePackages = "top.baogutang.*")
|
||||||
@MapperScan(basePackages = {"top.baogutang.admin.dao.mapper", "top.baogutang.common.dao.mapper"})
|
@MapperScan(basePackages = {"top.baogutang.admin.dao.mapper", "top.baogutang.common.dao.mapper"})
|
||||||
|
@EnableDiscoveryClient
|
||||||
public class BaoGuTangAdminApplication {
|
public class BaoGuTangAdminApplication {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|||||||
@ -17,7 +17,7 @@ import javax.annotation.Resource;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/v1/common")
|
@RequestMapping("/api/v1/admin/common")
|
||||||
public class CommonController {
|
public class CommonController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
|||||||
@ -17,7 +17,7 @@ import javax.annotation.Resource;
|
|||||||
* @author: nikooh
|
* @author: nikooh
|
||||||
* @date: 2024/02/22 : 11:49
|
* @date: 2024/02/22 : 11:49
|
||||||
*/
|
*/
|
||||||
@RequestMapping("api/v1/notice")
|
@RequestMapping("/api/v1/admin/notice")
|
||||||
@RestController
|
@RestController
|
||||||
public class NoticeController {
|
public class NoticeController {
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ import javax.annotation.Resource;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/v1/script")
|
@RequestMapping("/api/v1/admin/script")
|
||||||
public class ScriptController {
|
public class ScriptController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
|||||||
@ -24,7 +24,7 @@ import javax.annotation.Resource;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("api/v1/sysUser")
|
@RequestMapping("/api/v1/admin/sysUser")
|
||||||
public class SysUserController {
|
public class SysUserController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user