parent
36a5181b2b
commit
d6e2bfef54
@ -0,0 +1,41 @@
|
|||||||
|
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.kaiupup</groupId>
|
||||||
|
<artifactId>online-taxi-public</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<groupId>com.kaiupup.servicepassengeruser</groupId>
|
||||||
|
<artifactId>service-passenger-user</artifactId>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!--mybatis-plus-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
|
<version>3.4.3.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!--mybatis-plus-->
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</project>
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.kaiupup.servicepassengeruser;
|
||||||
|
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @projectName: online-taxi-public
|
||||||
|
* @package: com.kaiupup.servicepassengeruser
|
||||||
|
* @className: ServicePassengerUserApplication
|
||||||
|
* @author: kaiupup
|
||||||
|
* @description: TODO
|
||||||
|
* @date: 2023/7/29 21:39
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@SpringBootApplication
|
||||||
|
@EnableDiscoveryClient
|
||||||
|
//@MapperScan("com.kaiupup.servicepassengeruser.mapper")
|
||||||
|
public class ServicePassengerUserApplication {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(ServicePassengerUserApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.kaiupup.servicepassengeruser.controller;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @projectName: online-taxi-public
|
||||||
|
* @package: com.kaiupup.servicepassengeruser.controller
|
||||||
|
* @className: TestController
|
||||||
|
* @author: kaiupup
|
||||||
|
* @description: TODO
|
||||||
|
* @date: 2023/7/29 21:48
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
public class TestController {
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping
|
||||||
|
protected String testPUsr(){
|
||||||
|
return "service-passenger-user ok";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.kaiupup.servicepassengeruser.controller;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @projectName: online-taxi-public
|
||||||
|
* @package: com.kaiupup.servicepassengeruser.controller
|
||||||
|
* @className: UserController
|
||||||
|
* @author: kaiupup
|
||||||
|
* @description: TODO
|
||||||
|
* @date: 2023/7/29 22:13
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
public class UserController {
|
||||||
|
/*
|
||||||
|
@PostMapping
|
||||||
|
private */
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.kaiupup.servicepassengeruser.mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @projectName: online-taxi-public
|
||||||
|
* @package: com.kaiupup.servicepassengeruser.mapper
|
||||||
|
* @className: TestMapper
|
||||||
|
* @author: kaiupup
|
||||||
|
* @description: TODO
|
||||||
|
* @date: 2023/7/29 21:49
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public class TestMapper {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.kaiupup.servicepassengeruser.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @projectName: online-taxi-public
|
||||||
|
* @package: com.kaiupup.servicepassengeruser.service
|
||||||
|
* @className: TestService
|
||||||
|
* @author: kaiupup
|
||||||
|
* @description: TODO
|
||||||
|
* @date: 2023/7/29 21:48
|
||||||
|
* @version: 1.0
|
||||||
|
*/
|
||||||
|
public class TestService {
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
server:
|
||||||
|
port: 8083
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://localhost:3306/service-passenger-user?characterEncoding=utf-8&serverTimezone=GMT%2B8
|
||||||
|
username: root
|
||||||
|
password: 123456
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
application:
|
||||||
|
name: service-passenger-user
|
Loading…
Reference in new issue