[bs-29] Support for XML configuration in groovy apps
Mixed .groovy and .xml now supported bia spring CLI, e.g. $ spring samples/runner.groovy samples/runner.xml [Fixes #48059037]pull/1/merge
parent
bb62ca835e
commit
e3d5bf2e21
@ -0,0 +1,10 @@
|
|||||||
|
package org.test
|
||||||
|
|
||||||
|
class Runner implements CommandLineRunner {
|
||||||
|
|
||||||
|
void run(String... args) {
|
||||||
|
print "Hello World!"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||||
|
|
||||||
|
<bean id="runner" class="org.test.Runner"/>
|
||||||
|
|
||||||
|
</beans>
|
||||||
|
|
Loading…
Reference in New Issue