Springboot packaging must configure the packaging plugin

1. Description

When springboot is packaging, you must configure the packaging plug-in, as shown below:

Packaged into a jar package, you need to add maven dependency
        <build>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId >spring-boot-maven-plugin< /artifactId>
                </plugin>
            </ plugins>
        </build>
        If you do not add related dependencies, execute maven packaging, and you will get an error after running: no main manifest attribute, in XXX.ja

Guess you like

Origin blog.csdn.net/u011066470/article/details/115058360