package com.example.demo.module.notice;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 外部通知控制器
 */
@RestController
@RequestMapping("/externalNotice")
public class ExternalNoticeController {
    //通过注解的方式获取application.properties的配置值
    @Value("${server.servlet.context-path}")
    private String contextPath;
}
