Posts by Victor Alves • 65 points
7 posts
-
1
votes1
answer88
viewsA: Prefix in Node restify
Carlos, a suggestion would be to export the Routes and configure them in the server.js (your project’s configuration file). I did it using Express, follow the idea: // allows receive all request…
-
0
votes1
answer422
viewsQ: ADD Column - Django
How can I add a column to a table in the database using Django? I tried the following migration and did not update my table: from Django.db import models, Migrations class…
-
0
votes2
answers594
viewsA: Thymeleaf - Spring boot - Empty validation
Try the modification below. If that’s it, ok. Otherwise you need to add more information to the question, friend. <span class="label" th:classappend="${usuario == null ? 'label-success' :…
-
0
votes2
answers716
viewsA: What do the three dots mean ... before Document.querySelectorAll
It’s the Javascript Spread operator. You expand an expression where there are multiple arguments, for example: function sum(a,b) { return a+b; } let myArray = [1, 2]; console.log(sum(...myArray));…
javascriptanswered Victor Alves 65 -
1
votes3
answers1595
viewsA: How to pass code (id) through my viwer using Thymeleaf and spring mvc for the controller?
Rafael, you could remove the comment where you show the "{event.id}" and replace this <a th:href="${(#mvc.url('EC#detalhesEvento').arg(0, evento.codigo)).build()}"> therefore: <a…
-
0
votes2
answers662
viewsQ: Model, Express and the Mongoose
I have the following code in express.js const express = require('express'); const load = require('express-load'); module.exports = () => { var app = express(); var bodyParser =…
-
0
votes1
answer2275
viewsQ: JSON parse error
I am developing a web application (Spring) and need to save a date in the database. I made a function Ajax to save the value, but I get the following error: JSON parse error: Can not deserialize…