I am trying to draw the following image with CSS, I have tried several ways with border-radius, without any success. Is there a simple way to implement it? .
Virgilio La Rosa's questions
I have the following examples:
without public;
export class Persona {
name: string;
lastName: string;
dni: string;
}
With public;
export class Persona {
public name: string;
public lastName: string;
public dni: string;
}
If I leave the attribute without the access modifier, is it public by default? It may be something basic but I don't know what the correct definition would be (I want the attributes to be public to access them from the html in angular 5).
Good morning, I am currently developing a rest api with Spring Boot :: (v1.5.9.RELEASE) to control the management of a table called File, which persists with other entities,
The controller to call the service is as follows:
@RestController
public class ExpedientController {
@Autowired
protected ExpedientService expedientService;
@Autowired
protected ExpedientSubserviceService expedientSubserviceService;
protected UserService userService;
protected ObjectMapper mapper;
@CrossOrigin(origins = "*")
@RequestMapping(value = "/api/expedient/saveOrUpdate",method = RequestMethod.POST)
public RestResponse saveOrUpdate(@RequestBody String expedientJSON) throws JsonParseException, JsonMappingException, IOException {
this.mapper= new ObjectMapper();
Expedient expedient=this.mapper.readValue(expedientJSON,Expedient.class);
this.expedientService.save(expedient);
String message = Integer.toString(expedient.getId())+" "+Integer.toString(expedient.assured.getId());
return new RestResponse(HttpStatus.OK.value(), message);
}
@CrossOrigin(origins = "*")
@RequestMapping(value = "/api/expedient/getAll", method = RequestMethod.GET)
public List<Expedient> getAll() {
return this.expedientService.findAllByDeletedAt(0);
}
@RequestMapping(value = "/api/expedient/delete", method = RequestMethod.POST)
public void deleteExpedient(@RequestBody String expedientJson) throws Exception {
this.mapper = new ObjectMapper();
Expedient expedient = this.mapper.readValue(expedientJson, Expedient.class);
if (expedient.getId()==0) {
throw new Exception("El id esta nulo");
}
this.expedientService.delete(expedient.getId());
}
The Json of the query is large due to the number of objects that persist between them. Is it recommended that separate queries be made without the need to bring all the information of the persisted entities in the json? Or is there some compression method that can be used.