1.静态资源路径下 index.html
* 可以配置静态资源路径
* 但是不可以配置静态资源的访问前缀。否则导致 index.html不能被默认访问
spring:
# mvc:
# static-path-pattern: /res/** 这个会导致welcome page功能失效
resources:
static-locations: [classpath:/haha/]
2.controller能处理/index
1.静态资源路径下 index.html
* 可以配置静态资源路径
* 但是不可以配置静态资源的访问前缀。否则导致 index.html不能被默认访问
spring:
# mvc:
# static-path-pattern: /res/** 这个会导致welcome page功能失效
resources:
static-locations: [classpath:/haha/]
2.controller能处理/index
上一篇:idea使用lombok
下一篇:springboot访问静态资源
APP 引导页、欢迎页运用在实际生活中我们使用的每一款App都会有一个引导页和
配置<application android:name="com.shipping.application.ShippingApplication" android:allowBackup="true"
Spring Cloud是基于Spring Boot开发来的,是构建微服务的核心,是Java领域目前最适合做微服务的框架。严格来说spring Cloud应该是一套微服务规范,而Spring Cloud Netflix和Spring Cloud Alibaba都是它的一个实现,但Netflix是最成熟的。Spring Cloud相比Dubbo等RPC框架,Spring Cloud提供的全套的分布式
所谓不可变对象,是指一个对象在创建后,它的内部状态不会被改变的对象。这意味着当我们将一个不可变对象的引用赋值给某个变量后,我们就不能改变该对象的内部状态。 James Gosling也说过——Java开发者应该尽量使用不可变对象。 在Java中将String对象设置为不可变对象的好处很多,例如:缓存、安全、同步、性能等方面。 字符串共享 字符串常量池:字符串常量池是JV
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M