Task: Add Hybrid for Vaadin Fusion and Flow together, but have some issues with Login recursively routes
This commit is contained in:
@@ -33,6 +33,9 @@ public class SecurityConfiguration extends VaadinWebSecurityConfigurerAdapter {
|
||||
@Override
|
||||
public void configure(WebSecurity web) throws Exception {
|
||||
super.configure(web);
|
||||
web.ignoring().antMatchers("/images/logo.png");
|
||||
web.ignoring()
|
||||
.antMatchers(
|
||||
"/images/logo.png"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,22 @@
|
||||
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.dependency.NpmPackage
|
||||
import com.vaadin.flow.component.page.AppShellConfigurator
|
||||
import com.vaadin.flow.server.PWA
|
||||
import com.vaadin.flow.theme.Theme
|
||||
import org.springframework.boot.SpringApplication
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
|
||||
|
||||
@SpringBootApplication
|
||||
@Theme(value = "fusionmanagement")
|
||||
@PWA(name = "Fusion Management", shortName = "Fusion Management", offlineResources = ["images/logo.png"])
|
||||
@NpmPackage.Container(
|
||||
NpmPackage(value = "@fontsource/roboto", version = "4.5.0"),
|
||||
NpmPackage(value = "@adobe/lit-mobx", version = "2.0.0-rc.4"),
|
||||
NpmPackage(value = "mobx", version = "^6.1.5"),
|
||||
NpmPackage(value = "line-awesome", version = "1.3.0"),
|
||||
)
|
||||
class Application : SpringBootServletInitializer(), AppShellConfigurator
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.cubetiqs.fusion.config
|
||||
|
||||
import org.springframework.context.annotation.Configuration
|
||||
|
||||
@Configuration
|
||||
class DefaultConfig
|
||||
@@ -1,8 +0,0 @@
|
||||
package com.cubetiqs.fusion.config
|
||||
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession
|
||||
|
||||
@Configuration
|
||||
@EnableRedisHttpSession
|
||||
class SessionConfig
|
||||
5
src/main/kotlin/com/cubetiqs/fusion/frontend/MainView.kt
Normal file
5
src/main/kotlin/com/cubetiqs/fusion/frontend/MainView.kt
Normal file
@@ -0,0 +1,5 @@
|
||||
package com.cubetiqs.fusion.frontend
|
||||
|
||||
import com.vaadin.flow.component.UI
|
||||
|
||||
class MainView : UI()
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.cubetiqs.fusion.frontend.views.test
|
||||
|
||||
import com.vaadin.flow.component.html.Div
|
||||
import com.vaadin.flow.router.Route
|
||||
|
||||
@Route("/views/test")
|
||||
class TestView : Div() {
|
||||
init {
|
||||
add("Hello World")
|
||||
}
|
||||
}
|
||||
@@ -3,12 +3,10 @@ server:
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.atmosphere: warn
|
||||
org:
|
||||
atmosphere: warn
|
||||
|
||||
spring:
|
||||
session:
|
||||
store-type: redis
|
||||
|
||||
mustache:
|
||||
check-template-location: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user