Giter Site home page Giter Site logo

Hot reloading about spring-boot-vuejs HOT 3 CLOSED

jonashackt avatar jonashackt commented on May 13, 2024
Hot reloading

from spring-boot-vuejs.

Comments (3)

jonashackt avatar jonashackt commented on May 13, 2024

Hi @Erdboden - so the frontend process of hot reloading with the webpack dev server works for you and now you want to also change things inside the Spring Boot backend - and these aren´t reloaded? Inside the backend´s pom.xml the spring-boot-devtools should be in place to do the hot reloading of the backend. Depending on your IDE, this is triggering a fast restart of the backend. In IntelliJ you need to manually trigger a recompile in order to trigger this mechanism - at my Mac this is cmd - F9.

from spring-boot-vuejs.

Erdboden avatar Erdboden commented on May 13, 2024

@jonashackt

now you want to also change things inside the Spring Boot backend - and these aren´t reloaded?

yes correct

Inside the backend´s pom.xml the spring-boot-devtools should be in place to do the hot reloading of the backend.

i already have that

So yes on windows I also use ctrl-f9 but sometimes REST controllers just fail after hot swap and return 404 error. after recompiling again everything works fine.
Now i understand the problem is not related to this project so sorry for offtopic

also since you're here, I am not able to get an array of objects in my rest controller passed from a vue component

vue:
var params = new URLSearchParams(); params.append('users', this.user); AXIOS.post(/user, params) .then(response => { // JSON responses are automatically parsed. })

controller method:
long addNewUser(@RequestParam("users") String[] userTranslations) { System.out.println(userTranslations);

array:
image

what am i doing wrong?

from spring-boot-vuejs.

jonashackt avatar jonashackt commented on May 13, 2024

Ok, so I close the ticket now :)

from spring-boot-vuejs.

Related Issues (20)

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.