spring cloud添加新库注意

一世执手 提交于 2019-12-16 20:51:15

1.pom.xml添加

<!--fastdfs-->
        <dependency>
            <groupId>com.github.tobato</groupId>
            <artifactId>fastdfs-client</artifactId>
            <version>1.26.1-RELEASE</version>
        </dependency>

2.main.java添加

@Import(FdfsClientConfig.class)

3.添加库xxxx.java

4. xxx.yml添加

fdfs:
  connect-timeout: 600
  so-timeout: 1500
  tracker-list: 192.168.130.71:22122 #本地测试访问fastDFS访问端口

  thumb-image:
    height: 150
    width: 150
  resHost: 192.168.130.71
  storagePort: 8080
  fileIp: http://192.168.130.71:8080/   #部署服务器外部访问ip
  pool:
    max-total: 200
#requestUrl: http://localhost:8904  #本地测试
requestUrl: http://192.168.130.132/dygabackground-management-system   #开发环境

 

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!