Polish
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.ws;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
@@ -28,4 +29,5 @@ public class SampleWsApplication {
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(SampleWsApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.ws;
|
||||
|
||||
import org.springframework.boot.context.embedded.ServletRegistrationBean;
|
||||
@@ -52,4 +53,5 @@ public class WebServiceConfig extends WsConfigurerAdapter {
|
||||
public XsdSchema countriesSchema() {
|
||||
return new SimpleXsdSchema(new ClassPathResource("META-INF/schemas/hr.xsd"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.ws.endpoint;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
@@ -76,4 +77,5 @@ public class HolidayEndpoint {
|
||||
|
||||
this.humanResourceService.bookHoliday(startDate, endDate, name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.ws.service;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -20,4 +21,5 @@ import java.util.Date;
|
||||
public interface HumanResourceService {
|
||||
|
||||
void bookHoliday(Date startDate, Date endDate, String name);
|
||||
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.ws.service;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -31,4 +32,5 @@ public class StubHumanResourceService implements HumanResourceService {
|
||||
this.logger.info("Booking holiday for [{} - {}] for [{}] ", startDate, endDate,
|
||||
name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user