[Vuejs]-Vue + Spring Boot: resolving CORS errors and/or using HTTP in Spring Boot

0👍

For error

java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

Maybe, you coded wrong here.

methods: {
      async submit() {
        // SHOULD BE http://localhost:8085/api/v1/form NOT https://localhost:8085/api/v1/form
        const resp = await this.$axios.post("https://localhost:8085/api/v1/form", 
        this.userdata);
        console.log(resp);
      }
    }

Leave a comment