我在 Spring Boot vaadin flow 应用程序中看不到页面
虽然我的 spring boot vaadin flow 应用程序编译成功,但我在浏览器中看不到任何页面。当我运行 http://127.0.0.1:8080/hello 我只看到:
<块引用>无法导航到“hello”可用路线:此详细消息仅在开发模式下运行时显示。
你能帮助我吗?我怀疑这是一个注释问题。下面我展示了3个类的注释:
@Theme(themeClass = Lumo.class)
@CssImport("./styles/select-lumo-bright.css")
@SpringBootApplication
public class PayrollApplication extends SpringBootServletInitializer implements AppShellConfigurator
{
public static void main(String[] args) {
SpringApplication.run(PayrollApplication.class, args);
}
}
@Component()
@ComponentScan("com.tool.jdbc")
@UIScope
@Route(value = "hello", layout = MainView.class)
public class PanelMain extends Div implements Constants,AfterNavigationObserver {
public class MainView extends AppLayout implements Constants{
谢谢
While my spring boot vaadin flow application compiles successfully I cannot see any page in browser. When I run http://127.0.0.1:8080/hello I just see :
Could not navigate to 'hello' Available routes: This detailed message is only shown when running in development mode.
Can you help me? I suspect it is an annotation issue. Bellow I show the annotation of 3 classes:
@Theme(themeClass = Lumo.class)
@CssImport("./styles/select-lumo-bright.css")
@SpringBootApplication
public class PayrollApplication extends SpringBootServletInitializer implements AppShellConfigurator
{
public static void main(String[] args) {
SpringApplication.run(PayrollApplication.class, args);
}
}
@Component()
@ComponentScan("com.tool.jdbc")
@UIScope
@Route(value = "hello", layout = MainView.class)
public class PanelMain extends Div implements Constants,AfterNavigationObserver {
public class MainView extends AppLayout implements Constants{
thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论