Commit 5dbce86a authored by 杨伊博's avatar 杨伊博

add maven plugin

parent e9025aa5
......@@ -14,7 +14,7 @@
<version>1.3.0.RELEASE</version>
</parent>
<properties>
<start-class>com.us.Application</start-class>
<start-class>com.us.example.Application</start-class>
<mybatis.version>3.2.7</mybatis.version>
<mybatis-spring.version>1.2.2</mybatis-spring.version>
<maven.compiler.target>1.8</maven.compiler.target>
......@@ -74,4 +74,29 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package com.us.example.service.Impl;
import java.util.Date;
import java.util.Map;
import javafx.scene.input.DataFormat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
......@@ -34,8 +36,9 @@ public class UserServiceImpl implements UserService {
}
//每一秒调用一次 -- 用于测试
@Scheduled(cron = "0/1 * * * * ?")
@Scheduled(cron = "0/30 * * * * ?")
public void printName() {
System.out.println(new Date());
System.out.println("my name is yang ");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment