csw há 6 meses atrás
pai
commit
47c7c322a4

+ 65 - 65
pom.xml

@@ -1,83 +1,83 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-	<parent>
-		<artifactId>three-framework</artifactId>
-		<groupId>com.three</groupId>
-		<version>2.0</version>
-	</parent>
-	<modelVersion>4.0.0</modelVersion>
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>three-framework</artifactId>
+        <groupId>com.three</groupId>
+        <version>2.0</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
 
-	<artifactId>auth-server</artifactId>
-	<packaging>jar</packaging>
-	<version>2.0</version>
+    <artifactId>alg-platform</artifactId>
+    <packaging>jar</packaging>
+    <version>2.0</version>
 
-	<dependencies>
+    <dependencies>
 
-		<!--        <dependency>-->
-		<!--            <groupId>com.three</groupId>-->
-		<!--            <artifactId>three-client</artifactId>-->
-		<!--            <version>2.0</version>-->
-		<!--        </dependency>-->
+<!--        <dependency>-->
+<!--            <groupId>com.three</groupId>-->
+<!--            <artifactId>three-client</artifactId>-->
+<!--            <version>2.0</version>-->
+<!--        </dependency>-->
 
-		<dependency>
-			<groupId>com.three</groupId>
-			<artifactId>three-data-api</artifactId>
-			<version>2.0</version>
-		</dependency>
+        <dependency>
+            <groupId>com.three</groupId>
+            <artifactId>three-data-api</artifactId>
+            <version>2.0</version>
+        </dependency>
 
-		<dependency>
-			<groupId>com.three</groupId>
-			<artifactId>three-data-api-dm</artifactId>
-			<version>2.0</version>
-		</dependency>
+        <dependency>
+            <groupId>com.three</groupId>
+            <artifactId>three-data-api-dm</artifactId>
+            <version>2.0</version>
+        </dependency>
 
-		<dependency>
-			<groupId>com.three</groupId>
-			<artifactId>three-datasource</artifactId>
-			<version>2.0</version>
-		</dependency>
+        <dependency>
+            <groupId>com.three</groupId>
+            <artifactId>three-datasource</artifactId>
+            <version>2.0</version>
+        </dependency>
 
-		<dependency>
-			<groupId>com.three</groupId>
-			<artifactId>three-redis</artifactId>
-			<version>2.0</version>
-		</dependency>
+        <dependency>
+            <groupId>com.three</groupId>
+            <artifactId>three-redis</artifactId>
+            <version>2.0</version>
+        </dependency>
 
-<!--		<dependency>-->
-<!--			<groupId>com.three</groupId>-->
-<!--			<artifactId>three-auth</artifactId>-->
-<!--			<version>2.0</version>-->
-<!--		</dependency>-->
+        <!--		<dependency>-->
+        <!--			<groupId>com.three</groupId>-->
+        <!--			<artifactId>three-auth</artifactId>-->
+        <!--			<version>2.0</version>-->
+        <!--		</dependency>-->
 
-		<dependency>
-			<groupId>com.three</groupId>
-			<artifactId>three-security</artifactId>
-			<version>2.0</version>
-		</dependency>
+        <dependency>
+            <groupId>com.three</groupId>
+            <artifactId>three-security</artifactId>
+            <version>2.0</version>
+        </dependency>
 
-		<dependency>
-			<groupId>com.three</groupId>
-			<artifactId>three-quartz</artifactId>
-			<version>2.0</version>
-		</dependency>
+        <dependency>
+            <groupId>com.three</groupId>
+            <artifactId>three-quartz</artifactId>
+            <version>2.0</version>
+        </dependency>
 
-		<!--<dependency>-->
-		<!--<groupId>com.three</groupId>-->
-		<!--<artifactId>three-message</artifactId>-->
-		<!--<version>1.0</version>-->
-		<!--</dependency>-->
+        <!--<dependency>-->
+        <!--<groupId>com.three</groupId>-->
+        <!--<artifactId>three-message</artifactId>-->
+        <!--<version>1.0</version>-->
+        <!--</dependency>-->
 
-	</dependencies>
+    </dependencies>
 
 
-	<build>
-		<plugins>
-			<plugin>
-				<groupId>org.springframework.boot</groupId>
-				<artifactId>spring-boot-maven-plugin</artifactId>
-			</plugin>
-		</plugins>
-	</build>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
 
 </project>

+ 2 - 0
src/main/java/com/ecnu/platform/SmartPortPlatformApplication.java

@@ -1,9 +1,11 @@
 package com.ecnu.platform;
 
+//import com.three.client.EnableClient;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 
 @SpringBootApplication
+//@EnableClient
 public class SmartPortPlatformApplication {
 
 	public static void main(String[] args) {

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

@@ -1,6 +1,6 @@
 spring:
   application:
-    name: auth-server
+    name: alg-platform
     cloud:
       nacos:
         discovery:
@@ -12,7 +12,7 @@ spring:
 server:
   port: 8083
   servlet:
-    context-path: /auth-server
+    context-path: /alg-platform
 
 #mqtt,rabbitmq 是否启用
 #message:

+ 6 - 3
src/main/resources/three-druid.properties

@@ -1,7 +1,10 @@
 three.druid.driver-class-name=com.mysql.cj.jdbc.Driver
-three.druid.url=jdbc:mysql://lekoxnfx.com:43306/app-test?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
-three.druid.username=app-test
-three.druid.password=app-test
+#three.druid.url=jdbc:mysql://lekoxnfx.com:43306/app-test?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
+#three.druid.username=app-test
+#three.druid.password=app-test
+three.druid.url=jdbc:mysql://yuerantec.com:2603/algplat?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
+three.druid.username=ap
+three.druid.password=ap
 three.druid.type=com.alibaba.druid.pool.DruidDataSource
 # 初始化连接大小
 three.druid.initialSize=1

+ 6 - 3
src/main/resources/three-redis.properties

@@ -26,6 +26,9 @@ three.redis.testWhileIdle=true
 # 单机版
 #three.redis.host=127.0.0.1
 #three.redis.port=6379
-three.redis.host=lekoxnfx.com
-three.redis.port=46378
-three.redis.password=xptj8LEG
+#three.redis.host=lekoxnfx.com
+#three.redis.port=46378
+#three.redis.password=xptj8LEG
+three.redis.host=ecnuer.com
+three.redis.port=5499
+three.redis.password=tomcat

+ 0 - 13
src/test/java/com/ecnu/platform/SmartPortPlatformApplicationTests.java

@@ -1,13 +0,0 @@
-package com.ecnu.platform;
-
-import org.junit.jupiter.api.Test;
-import org.springframework.boot.test.context.SpringBootTest;
-
-@SpringBootTest
-class SmartPortPlatformApplicationTests {
-
-	@Test
-	void contextLoads() {
-	}
-
-}