Selaa lähdekoodia

1、修改auth服务端口

17358629955 2 vuotta sitten
vanhempi
commit
165c3a0974

+ 1 - 1
README.md

@@ -69,7 +69,7 @@ sckw-service-platform
 │       └── sckw-app-api                         // app端api接口服务 [8010]
 │       └── sckw-web-api                         // web端api接口服务 [8020]
 ├── sckw-gateway         				// 网关服务 [10010]
-├── sckw-auth            				// 登录认证中心 [10020]
+├── sckw-auth            				// 登录认证中心 [10160]
 ├── sckw-modules                                // 业务模块
 │       └── sckw-system                         // 系统基础服务模块 [10030]
 │       └── sckw-message                        // 消息服务 [10040]

+ 1 - 0
pom.xml

@@ -37,6 +37,7 @@
         <fastjson.version>2.0.32</fastjson.version>
         <hutool.version>5.8.18</hutool.version>
         <pagehelper.version>5.3.2</pagehelper.version>
+        <pagehelper-spring-boot-starter.version>1.4.7</pagehelper-spring-boot-starter.version>
         <junit.version>4.13.2</junit.version>
     </properties>
     <dependencyManagement>

+ 1 - 1
sckw-auth/src/main/resources/bootstrap.yml

@@ -1,5 +1,5 @@
 server:
-  port: 10200
+  port: 10160
 
 spring:
   application:

+ 0 - 1
sckw-modules/sckw-example/src/main/java/com/sckw/example/model/Student.java

@@ -2,7 +2,6 @@ package com.sckw.example.model;
 
 import lombok.Data;
 import org.springframework.data.annotation.Id;
-
 import java.util.Date;
 
 @Data

+ 8 - 8
sckw-modules/sckw-example/src/test/java/com/sckw/example/StudentRepositoryTest.java

@@ -69,16 +69,16 @@ public class StudentRepositoryTest {
         //根据id列表查询多个对象
         Iterable<Student> itStu = studentRepository.findAllById(Arrays.asList(new String[]{"001", "002"}));
         Iterator<Student> itor = itStu.iterator();
-        while (itor.hasNext())
-            System.out.println(itor.next());
+//        while (itor.hasNext())
+//            System.out.println(itor.next());
 
         //查询所有
         List<Student> all = studentRepository.findAll();
 
         //查询所有并排序
         List<Student> all1 = studentRepository.findAll(Sort.by(Sort.Order.desc("studentId"), Sort.Order.asc("studentName")));
-        for (Student stu : all1)
-            System.out.println(stu);
+//        for (Student stu : all1)
+//            System.out.println(stu);
 
         System.out.println("0------------------:"+all1.size());
 
@@ -86,8 +86,8 @@ public class StudentRepositoryTest {
         Student student1 = new Student();
         student1.setStudentName("tom");
         List<Student> all2 = studentRepository.findAll(Example.of(student1), Sort.by(Sort.Order.desc("studentId"), Sort.Order.asc("studentName")));
-        for (Student stu : all2)
-            System.out.println(stu);
+//        for (Student stu : all2)
+//            System.out.println(stu);
 
 
 
@@ -95,8 +95,8 @@ public class StudentRepositoryTest {
         Pageable pageable = PageRequest.of(0, 2);
         Page<Student> all3 = studentRepository.findAll(pageable);
         List<Student> content = all3.getContent();
-        for (Student stu : content)
-            System.out.println(stu);
+//        for (Student stu : content)
+//            System.out.println(stu);
 
         System.out.println("1------------------:"+content.size());
         Long enttime = System.currentTimeMillis();