application.properties可以自己新建,放在这里:(该文件可以放在4个地方,详情百度)

在文件中添加:
file_path=E://Tools//apache-tomcat-9.0.1//webapps//AMPP//models//upload.stl

在controller(或其他需要的类)中引入
import org.springframework.beans.factory.annotation.Value;

这样,即可使用配置文件中定义的值:

@Value("${file_path}")
private String template;

最新文章

  1. C#笔记
  2. Go语言实战 - revel框架教程之用户注册
  3. app开发遇到问题及解决
  4. 【Derby 系列】Apache Derby 功能特点
  5. Xcode 自定义代码段
  6. struts2视频学习笔记 11-12(动态方法调用,接收请求参数)
  7. Failed to create the java virtual machine完全解决办法
  8. Cannot find protocol declaration for "XXDelegate" 找不到协议错误
  9. POJ 3286 How many 0's?
  10. 信号量及PV原语
  11. Oracle EBS 预警系统管理
  12. Java中WebService实例
  13. Android实现先横向横线展现在纵向拉开图片
  14. ajax bookstrap美化网页,并实现页面的加载,删除与查看详情
  15. Amazing ASP.NET Core 2.0
  16. weui中的日期选择控件关于时间段的设置!
  17. 《你不知道的JavaScript上卷》知识点笔记
  18. U-boot-1.1.4中关于hello_world.srec出错
  19. 关于flex布局【转】
  20. .NET Standard 2.0正式发布了

热门文章

  1. table width 决定 td width
  2. nodejs unit test related----faker-cli, sinonjs, mock/stub
  3. 替换DOM元素 parent.replaceChild(new, old)
  4. sql 锁类型与锁机制
  5. 初识python (一)
  6. Andrew Ng机器学习编程作业:Neural Network Learning
  7. [设计模式]State模式
  8. unittest 单元测试框架断言方法
  9. beego——错误处理
  10. ORACLE 多表连接与子查询