- order 临时提交 发现 db 链接的不对

This commit is contained in:
sin
2019-03-17 17:05:01 +08:00
parent 8a652c24eb
commit ba7669f3a2
16 changed files with 509 additions and 80 deletions

View File

@@ -0,0 +1,14 @@
package cn.iocoder.mall.order;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = {"cn.iocoder.mall.order"})
public class OrderApplication {
public static void main(String[] args) {
SpringApplication.run(OrderApplication.class, args);
}
}

View File

@@ -1,13 +0,0 @@
package cn.iocoder.mall.order;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ProductApplication {
public static void main(String[] args) {
SpringApplication.run(ProductApplication.class, args);
}
}

View File

@@ -1,32 +1,9 @@
spring:
application:
name: order-application
# datasource
datasource:
url: jdbc:mysql://127.0.0.1:33061/mall_order?useSSL=false
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 123456
# server
server:
port: 8080
# mybatis
mybatis:
config-location: classpath:mybatis-config.xml
mapper-locations: classpath:mapper/*.xml
type-aliases-package: cn.iocoder.mall.order.dataobject
# dubbo
dubbo:
registry:
address: zookeeper://127.0.0.1:2181
protocol:
port: -1
name: dubbo
scan:
base-packages: cn.iocoder.mall.order.service
demo:
service:
version: 1.0.0
port: 18084
servlet:
context-path: /order-api/