azure-spring-boot-samples/azure-mediaservices-spring-boot-sample/src/main/java/sample/mediaservices/MediaServicesSampleApplication.java
@Override
    public void run(String... args) throws Exception {
        // Upload a local file to an Asset
        final AssetInfo uploadAsset = uploadFileAndCreateAsset("video.mp4");
        System.out.println("Uploaded Asset Id: " + uploadAsset.getId());
        System.out.println("Sample completed!");
    }
@Override
    public void run(String... args) throws Exception {
        // Upload a local file to an Asset
        final AssetInfo uploadAsset = uploadFileAndCreateAsset("video.mp4");
        System.out.println("Uploaded Asset Id: " + uploadAsset.getId());
        System.out.println("Sample completed!");
    }
https://docs.microsoft.com/en-us/azure/media-services/media-services-java-how-to-use