首页 > 其他分享 >项目总结

项目总结

时间:2022-09-22 12:00:59浏览次数:59  
标签:总结 sample 依赖 项目 -- Project

linux查看端口进程号命令

netstat -nltp | grep

 

当一个项目A依赖项目B,而项目B同时依赖项目C,如果项目A中因为各种原因不想引用项目C,在配置项目B的依赖时,可以排除对C的依赖。
示例(假设配置的是A的pom.xml,依赖关系为:A --> B; B --> C):
<project>
 
  <dependencies>
    <dependency>
      <groupId>sample.ProjectB</groupId>
      <artifactId>Project-B</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>  <!-- declare the exclusion here -->
          <groupId>sample.ProjectC</groupId>
          <artifactId>Project-C</artifactId>
        </exclusion>
      </exclusions> 
    </dependency>
  </dependencies>
</project>

 

windows 单机启动nacos

startup.cmd -m standalone

标签:总结,sample,依赖,项目,--,Project
From: https://www.cnblogs.com/wfswf/p/16712958.html

相关文章