上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 491 下一页
摘要: For example, inside code, we want production env & dev env print different time format. @Bean @Profile("!dev") public TimeService timeService(){ retur 阅读全文
posted @ 2020-12-04 16:01 Zhentiw 阅读(92) 评论(0) 推荐(0)
摘要: We can have some properties defined inside application.properties or application.yml file. application.properties: app.name=Frank app.greeting=Hello W 阅读全文
posted @ 2020-12-04 15:50 Zhentiw 阅读(110) 评论(0) 推荐(0)
摘要: pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> SecurityConfigur 阅读全文
posted @ 2020-12-01 15:41 Zhentiw 阅读(89) 评论(0) 推荐(0)
摘要: pom.xml: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependenc 阅读全文
posted @ 2020-11-30 22:36 Zhentiw 阅读(118) 评论(0) 推荐(0)
摘要: Define an action to update the record: import { createAction, props } from "@ngrx/store"; import { Update } from "@ngrx/entity"; import { Course } fro 阅读全文
posted @ 2020-11-30 19:13 Zhentiw 阅读(115) 评论(0) 推荐(0)
摘要: Reducer: import { Course, compareCourses } from "../model/course"; import { EntityState, createEntityAdapter } from "@ngrx/entity"; import { createRed 阅读全文
posted @ 2020-11-30 04:05 Zhentiw 阅读(283) 评论(0) 推荐(0)
摘要: Run bash to generate keystore.jks in src/mian/resources folder: keytool -genKey -keyalg RSA -alias linkedin -keystore keystore.jks -storepass password 阅读全文
posted @ 2020-11-30 03:50 Zhentiw 阅读(76) 评论(0) 推荐(0)
摘要: Profiles allow us to do different configurations based on different env. application.yml: spring: profiles: dev server: port: 8000 spring: profiles: t 阅读全文
posted @ 2020-11-30 03:29 Zhentiw 阅读(109) 评论(0) 推荐(0)
摘要: We can use @Controller to return a view with data: package com.frankmoley.lil.learningspring.web; import com.frankmoley.lil.learningspring.busniess.do 阅读全文
posted @ 2020-11-29 03:42 Zhentiw 阅读(99) 评论(0) 推荐(0)
摘要: Controller: @Controller @RequestMapping("/reservations") public class RoomReservationWebController { @Autowired private ReservationService reservation 阅读全文
posted @ 2020-11-29 02:41 Zhentiw 阅读(133) 评论(0) 推荐(0)
上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 491 下一页