Spring boot web services with actuator
<p>I checked few other similar questions, but didn't found solution. </p>

<p>So I have spring boot project with web services configured:</p>

<pre><code>@Configuration
public class WebServiceConfig {

@Autowired
private Bus bus;

@Bean
public Endpoint endpoint() {
    EndpointImpl endpoint = new EndpointImpl(bus, new ServiceImpl());
    endpoint.publish("/ws");
    return endpoint;
}
}
</code></pre>

<p>ServiceImpl, like:</p>

<pre><code>@javax.jws.WebService(serviceName = "ServiceImpl", portName = "ServiceImplPort", targetNamespace = "http://serivce.com/", endpointInterface = "pac.service...")
public class ServiceImpl... 
</code></pre>

<p>service is working fine. </p>

<p>My POM for that implementation looks like:</p>

<pre><code>...
&lt;dependency&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-ws&lt;/artifactId&gt;
        &lt;version&gt;1.3.5.RELEASE&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
        &lt;artifactId&gt;cxf-spring-boot-starter-jaxws&lt;/artifactId&gt;
        &lt;version&gt;3.1.7&lt;/version&gt;
    &lt;/dependency&gt;
   ...
</code></pre>

<p>MainClass:</p>

<pre><code> @Configuration
 @EnableAutoConfiguration
 @EnableScheduling
 @EnableWebMvc
 @ComponentScan("com.package")
 public class Application extends SpringBootServletInitializer {

public static void main(String[] args) throws Exception {
    SpringApplication.run(Application.class, args);
}

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(Application.class);
} }
</code></pre>

<p>So far, everything is working fine- WS is reachable, but If I add to POM:</p>

<pre><code>    &lt;dependency&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-actuator&lt;/artifactId&gt;
        &lt;version&gt;1.3.5.RELEASE&lt;/version&gt;
    &lt;/dependency&gt;
</code></pre>

<p>application start, I can see in logs:</p>

<p>EndpointHandlerMapping: Mapped "{[/info </p>

<p>EndpointHandlerMapping: Mapped "{[/health
etc.</p>

<p>and also:</p>

<p>ServerImpl: Setting the server's publish address to be /ws</p>

<p>so it's starting without any error and it looks like actuator should work, but when I tried invoke actuator endpoints I get 404 error.</p>

<p>when I invoke: localhost:8081/info</p>

<p>i get:
         
            No service was found.
         </p>

<p>I tried use:</p>

<pre><code>    &lt;dependency&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
    &lt;/dependency&gt;
</code></pre>

<p>but then WS was unreachable (as well as actuator endpoints)</p>

<p>any suggestion?</p>