Questions tagged [grails-config]
33 questions
1
vote
2 answers
Grails 2.0 use configuration value from external file in POGO
Here is the scenario. I have an file outside of my Grails application that contains url/username/password/etc. information so that developers can not see the connection information for production. I'm including this information in the…

Jarred Olson
- 3,075
- 1
- 19
- 34
1
vote
1 answer
Grails UserCredentialsDataSourceAdapter configuration issue
I am a newbie to groovy Grails frameworks. We have a requirement wherein we need to establish the database connection at runtime since each application user has unique credentials for getting the db connection. We found that we could make use of…

M Sidd
- 13
- 3
1
vote
2 answers
Spring Security and Grails - customizing URLS
In a current Grails app I'm working on all my account management now happens under an account controller which I would like to keep all those actions mapped under the /account/* URL pattern.
I'm using Spring Security Core. On a failed login the…

BuddyJoe
- 69,735
- 114
- 291
- 466
1
vote
2 answers
Grails 3 upload file limit size
What i am doing and what happened?
I am trying to upload files in grails and dowloand them. After make it, I am still facing a problem, when the file size is large. Here is the exception:
Caused by:…

IgniteCoders
- 4,834
- 3
- 44
- 62
1
vote
0 answers
What order does Grails evaluate its dependency repositories?
Does Grails evaluate its Maven repos top-down or bottom-up?
I would assume top-down but some manual testing might indicate bottom-up. I can provide test results if need be.
grails.project.dependency.resolution = {
repositories {
…

Vahid Pazirandeh
- 1,552
- 3
- 13
- 29
1
vote
1 answer
How to map all requests to a controller go to one method and access the original parameter
I have a controller where I'm trying to set defaults based on the url - but have all of the requests going to one controller.
Trying to extend the answer in : URLMapping to direct all request to a single controller/action
I did this in…

BZ.
- 1,928
- 2
- 17
- 26
1
vote
1 answer
Metadata External xml Path Issue
I would like to read the metadata from the external xml file in my saml configuration . Can anybody tell me whether it is possible or not . if yes then how?
currently i tried with this:-
grails.plugins.springsecurity.saml.metadata.sp.file =…

user1996823
- 579
- 1
- 4
- 10
1
vote
0 answers
Is it possible to reference variables defined in different configuration files in grails?
I've seen several similar questions but I haven't found a solution. Apologies if this is a duplicate.
My datasource is MongoDB and its properties are being defined in an external configuration file by the user like so :
External Datasource…

Travis
- 705
- 6
- 30
1
vote
0 answers
How can a Grails plugin modify the app's default mappings/constraints config?
I'm creating a Grails plugin which will modify the value of the following config property:
grails.gorm.default.constraints
The problem is that by the time my plugin descriptor starts running (doWithSpring) if the Grails application that uses the…

Vahid Pazirandeh
- 1,552
- 3
- 13
- 29
1
vote
1 answer
Grails Disable run-app command
In our project there is a requirement like force all user to use mvn for running the grails application. So I have a task assigned for it like disable the run-app support or override run-app command so when other guy try to run application using…

user9873999
- 311
- 3
- 15
1
vote
2 answers
CSS in vaadin plugin for grails
I am using the vaadin plugin for grails, and am trying to define some custom styles. Where within my grails appliction should I put the .css? My Vaadin application is in /vaadin/ I have tried creating a /vaadin/themes/mytheme/ folder and then…

Jay Elrod
- 738
- 1
- 7
- 20
0
votes
0 answers
Grails 5.x: How to render a Vue page from controller
I have a controller action that, after a certain process is finished, should render a JSON file containing a URL that links to a page displaying the results of that process. The user can then open this URL in their browser at a later point to see…

k Kqwer
- 63
- 5
0
votes
1 answer
Grails 3: Not able to set configuration inside plugin specific application.groovy file
I am trying to set the below config properties inside myapp/plugins/myPlugin/conf/application.groovy file, it seems to be not picking up the values
grails.controllers.upload.maxFileSize = 90000000 //9MB
grails.controllers.upload.maxRequestSize =…

n92
- 7,424
- 27
- 93
- 129
0
votes
1 answer
How to Read Attributes from Grails Externalized Properties Files in Javascript Files
I have added an externalized properties file in Config.groovy file. Such as:
grails.config.locations << "file:app-test-config.properties"
And this how my externalized properties file app-test-config.properties look like:
SERVER_IP_ADDRESS =…

Bilal Ahmed Yaseen
- 2,506
- 2
- 23
- 48
0
votes
1 answer
Unit testing grails ConfigSlurper behavior
I'd like to write tests that would test behavior of externalized configs and assert that what gets set is what I expect. This is for the specific case where something like this is done:
Config.groovy:
a.reused.value = 'orig'
my.variable =…

Sean LeBlanc
- 185
- 2
- 12