灿能云模块提交
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package com.njcn.main;
|
||||
package com.njcn.cloud;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.njcn.main;
|
||||
package com.njcn.cloud;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
@@ -11,10 +11,10 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
@MapperScan("com.njcn.**.mapper")
|
||||
@EnableFeignClients(basePackages = "com.njcn")
|
||||
@SpringBootApplication(scanBasePackages = "com.njcn")
|
||||
public class MainBootApplication {
|
||||
public class AppCloudBootApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MainBootApplication.class, args);
|
||||
SpringApplication.run(AppCloudBootApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -22,11 +22,11 @@ spring:
|
||||
nacos:
|
||||
discovery:
|
||||
ip: @service.server.url@
|
||||
server-addr: @nacos.url@
|
||||
namespace: @nacos.namespace@
|
||||
server-addr: 192.168.1.13:18848
|
||||
namespace: 78588706-e06f-4580-b612-b26d72493fcb
|
||||
config:
|
||||
server-addr: @nacos.url@
|
||||
namespace: @nacos.namespace@
|
||||
server-addr: 192.168.1.13:18848
|
||||
namespace: 78588706-e06f-4580-b612-b26d72493fcb
|
||||
file-extension: yaml
|
||||
shared-configs:
|
||||
- data-id: share-config.yaml
|
||||
@@ -42,7 +42,7 @@ logging:
|
||||
root: info
|
||||
#mybatis????
|
||||
mybatis-plus:
|
||||
type-aliases-package: com.njcn.main.pojo
|
||||
type-aliases-package: com.njcn.cloud.pojo
|
||||
mqtt:
|
||||
client-id: @artifactId@${random.value}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.njcn.main;
|
||||
package com.njcn.cloud;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class MainBootApplicationTests {
|
||||
class AppCloudBootApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
Reference in New Issue
Block a user