Git Product home page Git Product logo

framework-spring-tutorial's Introduction

Vaadin Spring tutorial

This project contains the source code for the tutorial for using Vaadin and Spring together with the help of Spring Boot.

The tutorial can be found here.

Running the project from command line

Run mvn clean install spring-boot:run in the project root directory. After the server has started point your browser to http://localhost:8080 to see the resulting application.

Running the project from your IDE

Navigate to the org.vaadin.spring.tutorial.TutorialApplication class and run it as a Java application.

framework-spring-tutorial's People

Contributors

hesara avatar johannesh2 avatar pleku avatar tepi avatar zhesun88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

framework-spring-tutorial's Issues

Vaadin + Spring Boot errors: “Cannot enhance @Configuration” and “More than one Servlet Mapping defined”

I'm new to Spring and Vaadin and though I'm trying to go through tutorial for views navigation.

My project is very, very simple and just for hobby and learning purpose. But if it works for me I'll maybe try to use Vaadin in my job too. I use no configuration class nor any XML - only Java annotations. I'd like to enable @Push eventually to update views periodically with data fetched from DB.

Could anyone help me to fix the example code? I'm getting following warnings and I'm not sure what can be done with it and what will be the result of ignoring them.

First one is:

onClassPostProcessor : Cannot enhance @Configuration bean definition 'com.vaadin.spring.VaadinConfiguration' since its singleton instance has been created too early.
The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type:
Consider declaring such methods as 'static'.

And another one is only when I add compile("com.vaadin:vaadin-push") dependancy:

o.a.util.IOUtils     : More than one Servlet Mapping defined. 
WebSocket may not work org.apache.catalina.core.ApplicationServletRegistration

Detailed information and all the necessary files with code required to reproduce the issue are here: stack overflow question.

I guess that everything is done as in the tutorial (which my code is only a small subset of) or am I missing something?

If there is nothing to worry about with these warnings then maybe it's worth mentioning that in the tutorial itself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.