摘要:
package com.test.controller.model; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.C 阅读全文
posted @ 2022-05-14 18:13
小白龙白龙马
阅读(80)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2022-05-14 17:38
小白龙白龙马
阅读(52)
评论(0)
推荐(0)
摘要:
import org.springframework.beans.factory.annotation.Autowired;import org.springframework.core.env.Environment; 阅读全文
posted @ 2022-05-14 17:17
小白龙白龙马
阅读(248)
评论(0)
推荐(0)
摘要:
一、server.servlet.context-path配置的作用 定义: server.servlet.context-path= # Context path of the application. 应用的上下文路径,也可以称为项目路径,是构成url地址的一部分。 server.servlet 阅读全文
posted @ 2022-05-14 16:34
小白龙白龙马
阅读(2794)
评论(0)
推荐(0)
摘要:
http://localhost:8080/12 http://localhost:8888/12 阅读全文
posted @ 2022-05-14 15:47
小白龙白龙马
阅读(261)
评论(0)
推荐(0)
摘要:
关闭banner: application.properties文件配置如下: spring.main.banner-mode = off 阅读全文
posted @ 2022-05-14 15:26
小白龙白龙马
阅读(57)
评论(0)
推荐(0)
摘要:
package com.test; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.s 阅读全文
posted @ 2022-05-14 14:48
小白龙白龙马
阅读(231)
评论(0)
推荐(0)
摘要:
spring boot应用通常都有一个名为*Application的程序入库,该入口类需要使用spring boot的核心注解 @SpringBootApplication 标注为应用的启动类; 另外该入口类拥有一个标注的java应用程序的main方法,在main方法中通过 “ SpringAppl 阅读全文
posted @ 2022-05-14 14:37
小白龙白龙马
阅读(512)
评论(0)
推荐(0)
摘要:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> </parent> <d 阅读全文
posted @ 2022-05-14 13:49
小白龙白龙马
阅读(173)
评论(0)
推荐(0)
摘要:
IDEA创建Spring boot项目方法一:Maven archetype[原型] 方法一:使用“Maven-archetype-webapp”原型创建Springboot项目 新建maven项目。File>New>Project>Maven>Create from archetype>Maven 阅读全文
posted @ 2022-05-14 13:37
小白龙白龙马
阅读(1372)
评论(0)
推荐(0)

浙公网安备 33010602011771号