My project creates war files that get deployed in different tomcat instances. Instead of using properties files in all of these locations and remembering to update the property values in these files we extended Springs PropertyPlaceholderConfigurer to read properties from a Mongo. This works well for our java/spring based wars. The problem is trying to get our grails applications to use this bean. I have included the bean in the spring/resources.groovy(or xml) but grails does not honor the bean and it gets overridden (or overlooked) with it's own GrialsPlaceholderConfigurer. Is there a way to tell grails to use our own Configurer?
How can I use a custom PropertyPlaceholderConfigurer in Grails
472 views Asked by lmcadory At
2
There are 2 answers
Related Questions in SPRING
- HTTPS configuration in Spring Boot, server returning timeout
- Multi Tenancy in Spring - Partitioned Data Approach
- How to create beans of the same class for multiple template parameters in Spring
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Springboot: How to get an entity optional property and check null?
- How do I propagate the current SecurityContext to my @RabbitListener in Spring Boot?
- Spring's XML based bean configuration for Object Mapper's Case Insensitive property
- Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. I'm using Postgresql
- springboot class org.hibernate.mapping.Bag cannot be cast to class org.hibernate.mapping.SimpleValue
- Issue while deploying JDK 17 and Spring 6 application in Tomcat 10.1.20
- Spring JPA Data Auditing - How to design it?
- Springframework test: Async not started
- Error: Cannot invoke "jakarta.servlet.http.HttpSession.getAttribute(String)" because "session" is null
- How does spring-retry determine which methods to retry when @Retryable is placed at the class level?
- problem with edge server registration in Eureka
Related Questions in GRAILS
- Table UserRole not populated in Grails 6
- Grails run-app or grails compile is not working with 6..0.0( java 11 or 17)
- Hibernate OptimisticLocking(type = OptimisticLockType.DIRTY) not working
- HibernateOptimisticLockingFailureException in Groovy / Grails, how to proceed after recovry
- Grails with Spring Security: How do I keep a password history to prevent password reuse
- How can I configure a Grails application using the Spring Security Rest plugin to authenticate with Amazon Cognito
- Grails - Problem to Exclude a Filter from Specific Endpoints
- Why are my beans disabled onStartUp after upgrading to grails5?
- Getting error on upgrading mysql 8 with grails 2.4.3
- get XFF using angular
- how to compare to collections of map in groovy
- Grail/GORM Data Service @Query - Join with Multiple Conditions
- Build Grails project with specific environment
- Grails params in controller empty on too large post request
- Grails5 upgrade - hibernate now returning a hibernate proxy instead of actual object - why?
Related Questions in GRAILS-2.3
- Grails 2.3.4 Application Terminates During Startup After Updating to Release 2.5.6
- ERROR context.GrailsContextLoader - Error initializing Grails: Error creating bean with name 'grailsApplication'
- grails 2.3.7 data binding how assign database in multiple database
- How do I actually make Geb work with Grails 2.3.11?
- How to create a Rails project along with its database in Rails2?
- How to include gems in the project using Rails 2 and Ruby 1.9.3?
- Grails Routing-JMS plugin - Issue while deployment into weblogic
- Upgrading grails 2 to grails 3: HibernateCriteriaBuilder equivalent
- Does Grails 2.3.2 support java8
- "Where query" creates wrong SQL on production
- Grails 2.3.5 War not correctly working in Tomcat 7.0.47
- Class.metaclass.static say can not get static on null
- "Grails Repeated column in mapping for entity" error when same table is used for multiple hasMany relations
- Call Grails 2 r:require module from a taglib
- Can grails controller render text values twice to a client
Related Questions in GRAILS-2.2
- Grails No thread-bound request found error?
- Grails Cannot create a session after the response has been committed?
- Using multiple mockFor() in grails 2.2.3 unit test
- Is there a way to follow a redirect url while doing integration testing in grails?
- Creating SSL Certificate Server failed to start: com.ibm.crypto.tools.KeyTool error?
- Socket read IOException not being caught?
- custom page size in pdfbox?
- how to make sure milliseconds of the date are stored in database?
- xml declaration/header missing when generating xml?
- accessing session in gsp throws 'Cannot create a session after the response has been committed' error?
- Access-Control-Allow-Headers header not being added in response for cors non simple request?
- Creating slim Grails war file using common jars in Tomcat
- generated war file is 20mb without any plugins in grails 2.2?
- load jquery library in grails 2 is failing?
- where are dependencies installed in the production server?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Seems that it's possible from grails 1.0. I never used it but adding the following code in your configuration should work:
See also this test in the grails source code base.