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