I have a spring boot app. It only has few api.

Its running fine on embedded tomcat server.

Now I need to deploy to my external tomcat server.

So I added **packaging as war** in pom file

I tried making a war **using export as war option** and put this war file inside my external **tomcat webapps** folder and tried running it. ***It failed with 404 status.***

**War file Name**

```
CghsMobileApp.war

```

My rest controller

```
@RestController
@RequestMapping("/cghs")
public class HcoRestController {

    @Autowired
    private hcoService hcoSrvc;

    @GetMapping("/cghsCity")
    public List<CghsCity> getCghsCity() {
        return hcoSrvc.getCghsCity();
    }
}

```

**URL I tried to hit**

```
http://localhost:8080/CghsMobileApp/cghs/cghsCity

```

There is no html page inside my api project. Do I need to add one for war file to work.

I am lost here.
Any help will be appriciated.