-
SpringBoot官方網(wǎng)址:start.spring.io
查看全部 -
web、ajax異常統(tǒng)一處理
先判斷是否是ajax請(qǐng)求
40%
查看全部 -
ajax異常處理類
類:RestControllerAdvice
方法:ExceptionHandler(value=Exception.class)
40%
查看全部 -
統(tǒng)一的異常處理類ExceptionHandler
類:@ControllerAdvice
方法:@ExceptionHandler(value=Exception.class)
40%
查看全部 -
th標(biāo)簽,屬于前端
靜態(tài)文件路徑配置:spring.mvc.static-path-pattern=/static/**
了解20%
查看全部 -
依賴:spring-boot-starter-thymeleaf
application.properties,靜態(tài)資源配置
40%
查看全部 -
freemarker
依賴:spring-boot-starter-freemarker
application.properties:配置freemarker
前端放template下面
40%
查看全部 -
application.properties
Server 服務(wù)端相關(guān)配置(idea可以聯(lián)想)
server.servlet.context-path=/demo server.port=8080
特殊配置:server.address=***
tomcat相關(guān)配置
60%
查看全部 -
資源文件屬性配置映射到實(shí)體類
依賴:org.springframework.boot-spring-boot-configuration-processor
@Configuration
@ConfigurationProperties(。。。)
@PropertySource()
classpath:項(xiàng)目資源文件根路徑
40%
查看全部 -
devtools熱部署
我的備注:idea參考https://www.jianshu.com/p/f658fed35786
SpringBoot 在IDEA中實(shí)現(xiàn)熱部署(實(shí)用版)
如果因?yàn)榕f項(xiàng)目十分臃腫,導(dǎo)致每次都自動(dòng)熱重啟很慢而影響開(kāi)發(fā)效率,筆者建議直接在POM移除
spring-boot-devtools
依賴,然后使用Control+Shift+F9進(jìn)行手工免啟動(dòng)快速更新??!60%
查看全部 -
屬性:
@JsonIgnore
@JsonFormat(。。。)
@JsonInclude(Include.NON_NULL)
類:@JsonIgnoreProperties
60%
查看全部 -
@RestController=@Controller+@ResponseBody
100%
查看全部 -
eclipse使用STS搭建SpringBoot
10%,忽略
查看全部 -
官方地址生成項(xiàng)目:https://start.spring.io
官網(wǎng):https://spring.io
pom.xml
parent:spring-boot-starter-parent
properties:UTF-8、java
build-plugins:插件
啟動(dòng)依賴:spring-boot-starter
web依賴:spring-boot-starter-web
80%
查看全部 -
微服務(wù)SpringCloud
dubbo、thrift
了解90%,復(fù)習(xí)必要性10%
查看全部
舉報(bào)