修正代码生成微服务模板缺少配置文件问题
This commit is contained in:
@@ -281,9 +281,9 @@
|
||||
<template>module_cloud/web/db/erm.xml</template>
|
||||
<template>module_cloud/web/src/main/java/package.xml</template>
|
||||
<template>module_cloud/web/src/main/java/startClass.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/bootstrap.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/bootstrap-elk.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/bootstrap-prod.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/application.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/application-elk.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/application-prod.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/logback-spring.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/logback-spring-elk.xml</template>
|
||||
<template>module_cloud/web/src/main/resources/config/logback-spring-prod.xml</template>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
No deletion without permission, or be held responsible to law. -->
|
||||
<template>
|
||||
<name>bootstrap</name>
|
||||
<name>application-elk</name>
|
||||
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
|
||||
<fileName>bootstrap-elk.yml</fileName>
|
||||
<fileName>application-elk.yml</fileName>
|
||||
<content><![CDATA[
|
||||
|
||||
# 使用环境配置,只需 JVM 参数里加:-Dspring.profiles.active=prod,elk
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
No deletion without permission, or be held responsible to law. -->
|
||||
<template>
|
||||
<name>bootstrap</name>
|
||||
<name>application-prod</name>
|
||||
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
|
||||
<fileName>bootstrap-prod.yml</fileName>
|
||||
<fileName>application-prod.yml</fileName>
|
||||
<content><![CDATA[
|
||||
|
||||
# 使用环境配置,只需 JVM 参数里加:-Dspring.profiles.active=prod
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
No deletion without permission, or be held responsible to law. -->
|
||||
<template>
|
||||
<name>bootstrap</name>
|
||||
<name>application</name>
|
||||
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
|
||||
<fileName>bootstrap.yml</fileName>
|
||||
<fileName>application.yml</fileName>
|
||||
<content><![CDATA[
|
||||
#======================================#
|
||||
#========== Server settings ===========#
|
||||
@@ -54,9 +54,9 @@ spring:
|
||||
# - 'optional:configserver:'
|
||||
import:
|
||||
- 'nacos:application.yml'
|
||||
- 'nacos:application-${spring.profiles.active}.yml'
|
||||
- 'nacos:${spring.application.name}.yml'
|
||||
- 'nacos:${spring.application.name}-${spring.profiles.active}.yml'
|
||||
- 'nacos:application-\${spring.profiles.active}.yml'
|
||||
- 'nacos:\${spring.application.name}.yml'
|
||||
- 'nacos:\${spring.application.name}-\${spring.profiles.active}.yml'
|
||||
|
||||
# 分布式配置中心
|
||||
cloud:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
No deletion without permission, or be held responsible to law. -->
|
||||
<template>
|
||||
<name>logback-spring</name>
|
||||
<name>logback-spring-elk</name>
|
||||
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
|
||||
<fileName>logback-spring-elk.xml</fileName>
|
||||
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
No deletion without permission, or be held responsible to law. -->
|
||||
<template>
|
||||
<name>logback-spring</name>
|
||||
<name>logback-spring-prod</name>
|
||||
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
|
||||
<fileName>logback-spring-prod.xml</fileName>
|
||||
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
Reference in New Issue
Block a user