代码之家  ›  专栏  ›  技术社区  ›  Reto Höhener

瓦丹10+:如何禁用路由器?

  •  1
  • Reto Höhener  · 技术社区  · 6 年前

    我正在尝试将Vaadin 8应用程序迁移到Vaadin 11。

    我正在尝试使用vaadinslet和ui:。

    @webservlet(value=“/*”,asyncSupported=true)
    @vaadInServelConfiguration(productionMode=false,ui=testui.class)
    公共类testservlet扩展vaadinvlet{
    }
    
    公共类testui扩展用户界面{
    @重写
    受保护的void init(vaadinrequest请求){
    添加(新标签(“测试”));
    }
    }
    
    
    
    
    
    
    

    enter image description here

    migration guideenter image description here

    1 回复  |  直到 6 年前
        1
  •  3
  •   ollitietavainen vinayak    6 年前

    你至少需要一个 @Route 在VAADIN 10。由于要迁移,您可能需要检查以下文档: https://vaadin.com/docs/v10/flow/migration/1-migrating-v8-v10.html