package com.geostar.geostack.git_branch_manager.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties
public class MyConfig {

    @Value("${server.port:8080}")
    private int port;

    public int getPort() {
        return port;
    }
}

 

via:https://blog.csdn.net/russle/article/details/82563399

相关文章:

猜你喜欢
相关资源
相似解决方案