-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use can change spring.profiles.active's value without rebuild p…
…roject (#4616) * refactor: move spring.profiles.active to application.properties * fix: h2 test error when spring.jpa.properties.hibernate.globally_quoted_identifiers=true * fix(adminservice): test fail h2 test error when globally_quoted_identifiers = true * fix(configservice): test fail h2 test error when globally_quoted_identifiers=true * fix(portal): test fail h2 test error when globally_quoted_identifiers=true * fix: ${apollo_profile} * fix: license * feat: user only need to uncomment spring.profiles.active * test: fix * refactor: rename back to application.properties in src/test/resources * fix: applicatioin.properties -> applicatioin.yaml forbid cover config * test: add config DB_CLOSE_DELAY=-1 * test: fix config apolloconfigdb -> apolloportaldb * refactor: remove @TestPropertySource("classpath:" + "application.properties") * Update distributed-deployment-guide.md * fix: delete kubernetes and nacos discovery in application.properties * Update docs/zh/deployment/distributed-deployment-guide.md Co-authored-by: Jason Song <[email protected]> * Update docs/zh/deployment/distributed-deployment-guide.md Co-authored-by: Jason Song <[email protected]> * Update docs/zh/deployment/distributed-deployment-guide.md Co-authored-by: Jason Song <[email protected]> * Apply suggestions from code review Co-authored-by: Jason Song <[email protected]> * move up `启用外部xxxxxx` * docs: Replace built-in eureka with another service registry * Update CHANGES.md Co-authored-by: Jason Song <[email protected]>
- Loading branch information
Showing
15 changed files
with
477 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
apollo-adminservice/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright 2022 Apollo Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# You may uncomment the following config to activate different spring profiles | ||
#spring.profiles.active=github,consul-discovery | ||
#spring.profiles.active=github,zookeeper-discovery | ||
#spring.profiles.active=github,custom-defined-discovery | ||
#spring.profiles.active=github,database-discovery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# Copyright 2022 Apollo Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
spring: | ||
jpa: | ||
properties: | ||
hibernate: | ||
globally_quoted_identifiers: 'true' | ||
hibernate: | ||
globally_quoted_identifiers: 'true' | ||
# Naming strategy | ||
naming: | ||
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl | ||
info: | ||
# Project information | ||
git: | ||
location: classpath:apollo-git.properties | ||
mvc: | ||
converters: | ||
preferred-json-mapper: gson | ||
# DataSource | ||
datasource: | ||
hikari: | ||
connectionInitSql: set names utf8mb4 | ||
|
||
# Tomcat configuration | ||
server: | ||
tomcat: | ||
accept-count: '5000' | ||
# Increase tomcat header size for longer GET query parameter, should be n * 1024 | ||
max-http-header-size: '10240' | ||
|
||
# Spring Boot 2.x | ||
management: | ||
endpoints: | ||
web: | ||
exposure: | ||
include: info,health,metrics,prometheus | ||
base-path: / | ||
logging: | ||
logback: | ||
rollingpolicy: | ||
max-history: '10' | ||
max-file-size: 50MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
apollo-configservice/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Copyright 2022 Apollo Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# You may uncomment the following config to activate different spring profiles | ||
#spring.profiles.active=github,consul-discovery | ||
#spring.profiles.active=github,zookeeper-discovery | ||
#spring.profiles.active=github,custom-defined-discovery | ||
#spring.profiles.active=github,database-discovery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.