IT討論區(94) 疫市伏工伏到訓覺都dum春

1001 回覆
3 Like 0 Dislike
2020-09-06 17:18:38
不過係咪應該咁
service > controller > repository > jpa

service = multi repositoties??
controller = single'
2020-09-06 19:56:49
2020-09-06 20:49:25
你兩個好似唔同channel咁
Controller > DTO > Business Service > Repository
呢個係spring boot practice
Controller係最出面 api岩岩入黎果層layer
Service係用黎處理你想要perform既野(eg: 係repositories拎data, call api, 扭data etc)
2020-09-06 22:21:55
係我錯姐
我試過直接係controller instantiate repository
中間冇左service,有個interface implements repository就做埋sql
可能我整得太簡單
2020-09-07 00:05:26
想問下
如果如self branding、搵工為前題寫blog
你地會寫書面語定廣東話?
2020-09-07 00:17:47
我寫任何嘢都書面語為主
2020-09-07 01:40:21
如果有business logic 就最好加一層service 係一個common practice
最主要係用黎centralise persistence layer access, control start end of a transaction
就算你係service layer 咩都無做 直接將entity map 去DTO 都盡量唔好慳呢一步

https://stackoverflow.com/questions/35247453/call-repository-and-service-from-controller-layer-with-spring
2020-09-07 06:53:20
公司班老屎怱表示垃圾!!
business logic夾埋落JSP就得
2020-09-07 08:29:50
書面語/英文
2020-09-07 08:59:55
2020-09-07 09:15:03
英文
2020-09-07 09:15:27
有禮貌啲 開個價比人
2020-09-07 09:34:24
今日終於教識左個SA點用firefox個console debug同用jquery
向著文明又再進一步了
2020-09-07 10:00:24
2020-09-07 10:14:13
又係搵工的一天
2020-09-07 10:20:48
2020-09-07 10:23:12
2020-09-07 10:27:56
no money no talk
2020-09-07 10:40:33
呢期好多 19 AGENT 連CV都唔睇 就9禁REFER 你份CV


CLS
2020-09-07 10:41:21
自從有條柒頭一星期搞爛個app 2次,我舊公司直頭將我臨走前release個version當做final version
唔會再有update
2020-09-07 10:42:39
呢期好似少工
2020-09-07 10:46:22
我做緊devops+infra admin
一間問我做唔做programmer 一間就叫我去做sales CLS
2020-09-07 10:50:47
2間都要屌
2020-09-07 10:54:18
開名開心D
AmbitXXX, PeopleLxxK CLS
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞