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

相关文章:

  • 2021-11-23
  • 2021-09-23
  • 2022-12-23
  • 2022-01-31
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2021-11-14
  • 2021-05-19
  • 2021-11-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案