在行业客户中,一般无法提供CDN服务,因此默认关闭CDN动态资源功能:
在/portal-master/portal-impl/src/portal.properties文件中,有如下配置:
# # Set this to true to enable serving dynamically generated CSS, JavaScript, # and images via a CDN. Setting this to false allows the usage of CDNs that # do not support lazy loading of resources (e.g. Amazon CloudFront). # cdn.dynamic.resources.enabled=true
修改为:
# # Set this to true to enable serving dynamically generated CSS, JavaScript, # and images via a CDN. Setting this to false allows the usage of CDNs that # do not support lazy loading of resources (e.g. Amazon CloudFront). # cdn.dynamic.resources.enabled=false