摘要: We need our data persistence with configuring our datasouce: In application.properties: " " tells to save the in memory data into a file called 'gs-sp 阅读全文
posted @ 2019-01-14 21:55 Zhentiw 阅读(214) 评论(0) 推荐(0)
摘要: In pom.xml add dependency: Then in application.properties: Now, in the broswer, we can access h2 database though url: localhost:8080/h2 阅读全文
posted @ 2019-01-14 21:44 Zhentiw 阅读(184) 评论(0) 推荐(0)
摘要: We can use different application properties application.properties: application-prod.properties: application-test.properties: We can setup different p 阅读全文
posted @ 2019-01-14 21:30 Zhentiw 阅读(139) 评论(0) 推荐(0)
摘要: Controller: Code below shows a basic Controller to handle GET, POST; DELETE, PUT requests. Model: Im memory data: This is just a mock data. package he 阅读全文
posted @ 2019-01-14 20:32 Zhentiw 阅读(339) 评论(0) 推荐(0)
摘要: When combining multiple State ADT instances that depend on the same input, using chain can become quite burdensome. We end up having to play leapfrog 阅读全文
posted @ 2019-01-14 19:36 Zhentiw 阅读(187) 评论(0) 推荐(0)
摘要: By setting the strictPropertyInitialization flag in the .tsconfig file, TypeScript will start throwing errors unless we initialize all properties of c 阅读全文
posted @ 2019-01-14 19:21 Zhentiw 阅读(463) 评论(0) 推荐(0)
摘要: When looking at large numbers in code (such as 1800000) it’s oftentimes difficult for the human eye to quickly see how big the number actually is. Typ 阅读全文
posted @ 2019-01-14 16:45 Zhentiw 阅读(155) 评论(0) 推荐(0)