Spring Boot 2.0 动画Banner

Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。v2.0.0.RELEASE已于昨天正式发布。

前言

本篇文章介绍Spring Boot 2.0一个有趣的功能动画Banner;(当然,在实际开发中没有用处,just for fun)

准备

  • JDK 1.8 或更高版本
  • Maven 3 或更高版本

技术栈

  • Spring Boot 2.0

目录结构

Spring Boot 2.0 动画Banner_第1张图片

pom.xml


<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0modelVersion>

    <groupId>cn.merryyougroupId>
    <artifactId>animated-bannerartifactId>
    <version>0.0.1-SNAPSHOTversion>
    <packaging>jarpackaging>

    <name>animated-bannername>
    <description>A very useful project to demonstrate animated gif support in Spring Boot 2description>

    <parent>
        <groupId>org.springframework.bootgroupId>
        <artifactId>spring-boot-starter-parentartifactId>
        <version>2.0.0.RELEASEversion>
        <relativePath/> 
    parent>

    <properties>
        <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8project.reporting.outputEncoding>
        <java.version>1.8java.version>
    properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starterartifactId>
        dependency>

        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-testartifactId>
            <scope>testscope>
        dependency>
    dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-maven-pluginartifactId>
                <configuration>
                    <includeSystemScope>trueincludeSystemScope>
                configuration>
            plugin>
        plugins>
    build>


project>

项目打包

Spring Boot 2.0 动画Banner_第2张图片

控制台启动项目(MAC)

java -jar animated-banner-0.0.1-SNAPSHOT.jar

效果如下:

代码下载

从我的 github 中下载,https://github.com/longfeizheng/animated-banner


Spring Boot 2.0 动画Banner_第3张图片

������关注微信小程序java架构师历程
上下班的路上无聊吗?还在看小说、新闻吗?不知道怎样提高自己的技术吗?来吧这里有你需要的java架构文章,1.5w+的java工程师都在看,你还在等什么?

你可能感兴趣的:(JAVAweb)