浏览代码

stater相关修改

zhangchenglong 2 年之前
父节点
当前提交
62988e74a2
共有 3 个文件被更改,包括 17 次插入7 次删除
  1. 16 5
      pom.xml
  2. 0 1
      src/main/java/com/syjy/calculate/config/StarterServiceProperties.java
  3. 1 1
      src/main/resources/application.yml

+ 16 - 5
pom.xml

@@ -81,7 +81,7 @@
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-autoconfigure</artifactId>
-            <version>2.1.3.RELEASE</version>
+            <version>2.7.2</version>
         </dependency>
 
         <!--配置文件处理器-->
@@ -95,10 +95,21 @@
 
     <build>
         <plugins>
-            <!--<plugin>-->
-                <!--<groupId>org.springframework.boot</groupId>-->
-                <!--<artifactId>spring-boot-maven-plugin</artifactId>-->
-            <!--</plugin>-->
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <skip>true</skip>
+                    <mainClass>com.syjy.calculate.CalculationApplication</mainClass>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
 
             <!--跳过test类-->
             <plugin>

+ 0 - 1
src/main/java/com/syjy/calculate/config/StarterServiceProperties.java

@@ -3,7 +3,6 @@ package com.syjy.calculate.config;
 import org.springframework.boot.context.properties.ConfigurationProperties;
 import org.springframework.stereotype.Component;
 
-@Component
 @ConfigurationProperties("com.syjy.calculate.service")
 public class StarterServiceProperties {
     private String config;

+ 1 - 1
src/main/resources/application.yml

@@ -1,5 +1,5 @@
 server:
-  port: 9088
+  port: 9089
 spring:
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource