If it is not explicitly told in following recipe, setting up services are described for Ubuntu 20.04 server, but applications are described for Xubuntu 20.04 workstation. If you use different Ubuntu version or Linux distribution, settings as well as content, names and places of configuration files may be different!
Got it.

Extra 5. JSON

  1. Pārskatiet prezentāciju JSON
  2. Pievienojiet šādu atkarību pom.xml faila elementā <dependencies>:

    <!-- JSON -->
    <dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20180813</version>
    </dependency>
  3. Pārstatiet Eclipse projekta failus ar komandu savā projektā:

    mvn eclipse:eclipse

    un pārlādējiet projektu Eclipse

  4. Izpētiet jtm.extra05 pakotni
  5. Implementējiet klases Car un JsonCars, lai izietu vienības testi.

Papildu informācija

  1. Vairāk par populārāko JSON ietvaru Java
  2. Skatiet piemērus, kā izmantot šo bibliotēku.

Alternatīvas


  

Created by Valdis Vītoliņš on 2024-04-29 18:47
Last modified by Valdis Vītoliņš on 2024-04-29 19:42
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License