Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SpringBoot2.x区别总结

Exrick edited this page Aug 14, 2018 · 5 revisions

此处仅总结该项目中使用到的区别 详见官方变动文档 指Spring Boot版本<=1.5.10.Release 指 Spring Boot版本>=2.0.0.Release

JPA相关

原:

(削除) T findOne(ID var1); (削除ここまで)

新:

Optional<T> findById(ID var1);

原:

(削除) void delete(ID var1); (削除ここまで)

新:

void deleteById(ID var1);

配置文件相关

  • context-path

    原:

    (削除) server.context-path (削除ここまで)

    新:

    server.servlet.context-path
  • Spring Security

    原:

    (削除) security.* (削除ここまで)

    新:

    见Security变动官方文档

  • 文件上传:

    原:

    (削除) spring.http.multipart.maxFileSize (削除ここまで)

    (削除) spring.http.multipart.maxRequestSize (削除ここまで)

    新:

    spring.servlet.multipart.maxFileSize
    spring.servlet.multipart.maxRequestSize

更多详见官方变动文档

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /