-
SpringBoot 使用場(chǎng)景<br/>查看全部
-
SpringBoot 特點(diǎn)
查看全部 -
需要了解Mysql的事務(wù)隔離級(jí)別和傳播行為
查看全部 -
#thymeleaf 靜態(tài)資源配置
spring.thymeleaf.prefix=classpath:/templates
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=HTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
#開(kāi)發(fā)時(shí)關(guān)閉緩存? 線上改為true
spring.thymeleaf.cache=false
查看全部 -
jsonIgnore:不顯示返回字段
jsonFormat:格式化日期(pattern="yyyy-MM-dd hh:mm:ss a",locale="zh",timezone="GMT+8")
jsonInclude:不顯示為空字段(Include.NON_NULL)
查看全部 -
#freemarker 靜態(tài)資源配置
#設(shè)定ftl文件路徑
spring.freemarker.template-loader-path=classpath:/templates
#關(guān)閉緩存,即時(shí)刷新,上線生產(chǎn)環(huán)境需改為true
spring.freemarker.cache=false
spring.freemarker.charset=UTF-8
spring.freemarker.check-template-location=true
spring.freemarker.content-type=text/html
spring.freemarker.expose-request-attributes=true
spring.freemarker.expose-session-attributes=true
spring.freemarker.request-context-attributes=request
#設(shè)置freemarker后綴
spring.freemarker.suffix=.ftl
查看全部 -
查看全部
-
@RestController = @Controller +@ResponseBody
查看全部 -
查看全部
-
springboot整合mybatis
查看全部 -
SpringMVC的配置方式是這樣的
查看全部 -
@EnableAsync
@Async
查看全部 -
和熱部署沖突 需要注釋掉
查看全部 -
@ComponentScan(basePackages?=?{"com.imooc","org.n3r.idworker"})
外部包
查看全部 -
?Note: further occurrences of this error will be logged at DEBUG level.? 未知錯(cuò)誤待解決
查看全部
舉報(bào)