Change main application from java to kotlin

This commit is contained in:
Sambo Chea 2021-07-25 18:36:45 +07:00
parent 5c3762cfdd
commit dc63d3f98c
2 changed files with 17 additions and 27 deletions

View File

@ -1,27 +0,0 @@
package com.cubetiqs.fusion;
import com.vaadin.flow.component.page.AppShellConfigurator;
import com.vaadin.flow.server.PWA;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import com.vaadin.flow.theme.Theme;
/**
* The entry point of the Spring Boot application.
*
* Use the @PWA annotation make the application installable on phones, tablets
* and some desktop browsers.
*
*/
@SpringBootApplication
@Theme(value = "fusionmanagement")
@PWA(name = "Fusion Management", shortName = "Fusion Management", offlineResources = {"images/logo.png"})
public class Application extends SpringBootServletInitializer implements AppShellConfigurator {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}

View File

@ -0,0 +1,17 @@
package com.cubetiqs.fusion
import org.springframework.boot.autoconfigure.SpringBootApplication
import com.vaadin.flow.server.PWA
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
import com.vaadin.flow.component.page.AppShellConfigurator
import com.vaadin.flow.theme.Theme
import org.springframework.boot.SpringApplication
@SpringBootApplication
@Theme(value = "fusionmanagement")
@PWA(name = "Fusion Management", shortName = "Fusion Management", offlineResources = ["images/logo.png"])
class Application : SpringBootServletInitializer(), AppShellConfigurator
fun main(args: Array<String>) {
SpringApplication.run(Application::class.java, *args)
}