mirror of
https://gitee.com/dcren/initializr.git
synced 2025-10-21 11:07:37 +08:00
Download starter.zip from home page
This commit is contained in:
14
templates/Application.java
Normal file
14
templates/Application.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package ${packageName};
|
||||
|
||||
import org.springframework.bootstrap.SpringApplication;
|
||||
import org.springframework.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
@ComponentScan
|
||||
@EnableAutoConfiguration
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
}
|
@@ -39,7 +39,7 @@
|
||||
</div>
|
||||
<h1>Spring Initializr</h1>
|
||||
<div>
|
||||
<form action="/pom" method="get">
|
||||
<form action="/starter.zip" method="get">
|
||||
<label for="groupId">Group:</label> <input id="groupId" type="text" value="org.demo" name="groupId"/>
|
||||
<label for="artifactId">Artifact:</label> <input id="artifactId" type="text" value="demo" name="artifactId"/>
|
||||
<label for="name">Name:</label> <input id="name" type="text" value="demo" name="name"/>
|
||||
|
@@ -19,19 +19,19 @@
|
||||
<dependencies><% styles.each { %>
|
||||
<dependency>
|
||||
<groupId>org.springframework.zero</groupId>
|
||||
<artifactId>spring-starter-${it}</artifactId>
|
||||
<artifactId>spring-starter${it}</artifactId>
|
||||
</dependency><% } %>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<start-class>${packageName}.ApplicationConfiguration</start-class>
|
||||
<start-class>${packageName}.Application</start-class>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<groupId>org.springframework.zero</groupId>
|
||||
<artifactId>spring-package-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
Reference in New Issue
Block a user