Change main application from java to kotlin
This commit is contained in:
parent
5c3762cfdd
commit
dc63d3f98c
@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
17
src/main/kotlin/com/cubetiqs/fusion/Application.kt
Normal file
17
src/main/kotlin/com/cubetiqs/fusion/Application.kt
Normal 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)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user