|
|
@ -3,6 +3,7 @@ package mx.gob.jumapacelaya; |
|
|
|
import com.vaadin.flow.component.dependency.JsModule; |
|
|
|
import com.vaadin.flow.component.html.Main; |
|
|
|
import com.vaadin.flow.component.page.AppShellConfigurator; |
|
|
|
import com.vaadin.flow.server.PWA; |
|
|
|
import com.vaadin.flow.theme.Theme; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
@ -20,7 +21,7 @@ import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConf |
|
|
|
@SpringBootApplication(exclude = ErrorMvcAutoConfiguration.class) |
|
|
|
@Theme(value = "soportet.iv1.2") |
|
|
|
@JsModule("@vaadin/vaadin-lumo-styles/presets/compact.js") |
|
|
|
//@PWA(name = "My Application", shortName = "My App", iconPath = "/icons/icon.png") |
|
|
|
@PWA(name = "My Application", shortName = "My App", iconPath = "images/960x960.png") |
|
|
|
public class Application implements AppShellConfigurator { |
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(Main.class); |
|
|
@ -33,6 +34,7 @@ public class Application implements AppShellConfigurator { |
|
|
|
conectToService("localhost:8080"); |
|
|
|
|
|
|
|
logger.info("Aplicacion iniciada con exito"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private static void conectToService(String url) { |
|
|
|