SpringBoot.Web访问本地资源

1、application.yml

spring:
  # ZC: 本地资源配置
  resources:
    static-locations: classpath:/resources/,classpath:/static/,file:E://easydrawin

  # ZC: 数据源配置
  datasource:
    url: jdbc:sqlserver://172.16.19.243:1433;SelectMethod=cursor;DatabaseName=gisAdmin
    username: sa
    password: sae
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    type: com.alibaba.druid.pool.DruidDataSource

 

2、spring boot访问本地静态资源_Java识堂的博客-CSDN博客_springboot访问本地资源.html(https://blog.csdn.net/zzti_erlie/article/details/92167589

3、

4、

5、

 

posted @ 2020-07-17 09:45  JavaSkill  阅读(642)  评论(0编辑  收藏  举报