Adding a comment to help others avoid a mistake
I think "hello.wsdl" sounds too much like a file name and not a package. My colleague changed one and not the other and didn't see the problem. I think this comment would help.
This commit is contained in:
@@ -11,6 +11,7 @@ public class WeatherConfiguration {
|
||||
@Bean
|
||||
public Jaxb2Marshaller marshaller() {
|
||||
Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
|
||||
// this package must match the package in the <generatePackage> specified in pom.xml
|
||||
marshaller.setContextPath("hello.wsdl");
|
||||
return marshaller;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user