Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
ed2196fd
Commit
ed2196fd
authored
Mar 31, 2020
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20708 from dreis2211
* gh-20708: Polish GroovyTemplateAutoConfiguration Closes gh-20708
parents
e35bf8f4
798e21fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
GroovyTemplateAutoConfiguration.java
...gure/groovy/template/GroovyTemplateAutoConfiguration.java
+4
-5
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAutoConfiguration.java
View file @
ed2196fd
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -74,8 +74,7 @@ public class GroovyTemplateAutoConfiguration {
private
final
GroovyTemplateProperties
properties
;
public
GroovyMarkupConfiguration
(
ApplicationContext
applicationContext
,
GroovyTemplateProperties
properties
,
ObjectProvider
<
MarkupTemplateEngine
>
templateEngine
)
{
public
GroovyMarkupConfiguration
(
ApplicationContext
applicationContext
,
GroovyTemplateProperties
properties
)
{
this
.
applicationContext
=
applicationContext
;
this
.
properties
=
properties
;
}
...
...
@@ -96,8 +95,8 @@ public class GroovyTemplateAutoConfiguration {
/**
* MarkupTemplateEngine could be loaded from groovy-templates or groovy-all.
* Unfortunately it's quite common for people to use groovy-all and not actually
* need templating support. This method
check attempts to check the source jar so
*
that
we can skip the {@code /template} folder check for such cases.
* need templating support. This method
attempts to check the source jar so that
* we can skip the {@code /template} folder check for such cases.
* @return true if the groovy-all jar is used
*/
private
boolean
isUsingGroovyAllJar
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment