上一页 1 ··· 163 164 165 166 167 168 169 170 171 ··· 491 下一页
摘要: For example we have tow Entities: package com.virtualpairprogrammers.theater.domain import javax.persistence.* @Entity data class Performance( @Id @Ge 阅读全文
posted @ 2020-11-08 21:18 Zhentiw 阅读(119) 评论(0) 推荐(0)
摘要: pom.xml: add compile plugin <build> <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> <testSourceDirectory>${project.basedir}/src/ 阅读全文
posted @ 2020-11-06 03:38 Zhentiw 阅读(88) 评论(0) 推荐(0)
摘要: pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <gr 阅读全文
posted @ 2020-11-05 21:06 Zhentiw 阅读(126) 评论(0) 推荐(0)
摘要: We want to only freeze the private variable when we get it and set it: class Cart { #items; constructor(items = []) { this.value = items; } set value( 阅读全文
posted @ 2020-11-05 20:04 Zhentiw 阅读(80) 评论(0) 推荐(0)
摘要: Morden Javascript allows us to write private and static class memebers. To do this, we need to install babel plugins: First, let see "static member": 阅读全文
posted @ 2020-11-05 19:57 Zhentiw 阅读(153) 评论(0) 推荐(0)
摘要: Let's see two code snippets which has same functionalities: No1: function Cart(items = []) { this.items = Object.freeze(items); this.add = item => { c 阅读全文
posted @ 2020-11-05 18:19 Zhentiw 阅读(82) 评论(0) 推荐(0)
摘要: https://epicreact.dev/css-variables/ Code body[data-theme='light'] { --colors-primary: deeppink; --colors-background: white; } body[data-theme='dark'] 阅读全文
posted @ 2020-11-05 03:56 Zhentiw 阅读(108) 评论(0) 推荐(0)
摘要: Structure: tempalates/seatBooking.html: <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>com. 阅读全文
posted @ 2020-11-05 03:30 Zhentiw 阅读(167) 评论(0) 推荐(0)
摘要: In Java, you can use Autowired to init the service: @Autowired TheaterService theaterService In kotlin, it is different, you need to use 'lateinit var 阅读全文
posted @ 2020-11-05 03:17 Zhentiw 阅读(90) 评论(0) 推荐(0)
摘要: Many scenarios involve one task happening after another has completed. This lesson walks you through setting up "steps" which trigger one after anothe 阅读全文
posted @ 2020-11-04 20:09 Zhentiw 阅读(78) 评论(0) 推荐(0)
上一页 1 ··· 163 164 165 166 167 168 169 170 171 ··· 491 下一页