Spring Boot (i) Hello world

Source: Internet
Author: User

Spring boot fits with microservices, facilitates rapid development, simplifies configuration (contract > configuration). Preparatory work:
    • Springboot 2.0
    • Jdk8
    • Idea or eclipse+spring Tool suits
Create a project What did not say, see link: http://tengj.top/2017/02/26/springboot1/Note:

Springboot default profile read by default is iso8859-1, this time the input of Chinese will be automatically encoded, if changed to UTF-8 can be displayed normally, but spring read according to ISO is garbled.

Solution: Idea of Baidu, Eclipse temporarily no solution.

Replace properties for YML,YML support direct use of UTF-8 encoding, and easier to read

Workaround: Replace the suffix name directly

Attached: yml format red circle Live

Tomcat Thermal Deployment issues

Configure MAVEN to update resources without restarting the project

    <!--Hot Swapping, disable cache for template, enable live reload -        <Dependency>            <groupId>Org.springframework.boot</groupId>            <Artifactid>Spring-boot-devtools</Artifactid>            <Optional>True</Optional>        </Dependency>

Appendix: Other people write good documents, very good http://tengj.top/tags/Spring-Boot/

Spring Boot (i) Hello world

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.