Posts
Q&A
ģæ¼ė¦¬ź° ź°ģė³“ė¤ ė ėģ¤ź³ ģģµėė¤.
2024 ė ģė ģ“ 7ė² ģæ¼ė¦¬ė ģź°ė¤ģ. ėė²ź¹ ķ“볓ėaddress = order.getDelivery().getAddress(); // LAZY ģ“źø°ķģ“ ė¶ė¶ģģselect d1_0.delivery_id, d1_0.city, d1_0.street, d1_0.zipcode, d1_0.status from delivery d1_0 where d1_0.delivery_id=? 2024-10-22T14:07:35.134+09:00 DEBUG 6578 --- [nio-8080-exec-1] org.hibernate.SQL : select o1_0.order_id, o1_0.delivery_id, o1_0.member_id, o1_0.order_date, o1_0.status from orders o1_0 where o1_0.delivery_id=?ģ“ė ź² ėė² ģæ¼ė¦¬ź° ģ¤ķėė¤ģ.. List all = orderRepository.findAllByString(new OrderSearch());ģ¬źø°ģ 쿼리 ķė² name = order.getMember().getName(); // LAZY ģ“źø°ķģ¬źø°ģ 쿼리 ķė² address = order.getDelivery().getAddress(); // LAZY ģ“źø°ķģ¬źø°ģ 쿼리 ėė² ģ£¼ė¬ø 리ģ¤ķøź° 2ź° ģģ¼ėÆė”1 + 2 * (1 + 2) = 7 ė² ģ¤ķė©ėė¤.ź¶źøķ ģ ģ select o1_0.order_id, o1_0.delivery_id, o1_0.member_id, o1_0.order_date, o1_0.status from orders o1_0 where o1_0.delivery_id=?ģ“ ģæ¼ė¦¬ė ģ ģ¶ź°ģ ģ¼ė” ģ¤ķėėģ§ ėŖØė„“ź² ģµėė¤.
- Likes
- 9
- Comments
- 5
- Viewcount
- 1.4K
Q&A
docker-compose up ģ ģ¤ė„
ķģ¬ ģėėė ģ½ė ģ ėė¤.docker-compose.yml version: '3' services: redis-server: image: redis container_name: redis-container restart: unless-stopped expose: - 6379 node-app: depends_on: - redis-server build: context: . dockerfile: Dockerfile container_name: node-app restart: on-failure ports: - "8787:8787"server.jsconst express = require('express'); const redis = require('redis'); // ė ėģ¤ ķ“ė¼ģ“ģøķø ģģ± const client = redis.createClient({ socket: { host: "redis-server", port: 6379 } }); const app = express(); app.get('/', async (req, res) => { await client.connect(); let number = await client.get("number"); if (number === null) { number = 0; } console.log('Number: ' + number) res.send("ģ«ģź° 1ģ© ģ¬ė¼ź°ėė¤. ģ«ģ : " + number) // ķģ¬ ģ«ģ넼 ź°ģ øģØ ķ 1ģ© ģ¦ź°ģķØė¤. await client.set("number", parseInt(number) + 1); await client.disconnect(); }) app.listen(8787); console.log('server on!'); package.json{ "name": "docker-compose-app", "version": "1.0.0", "description": "", "main": "server.js", "scripts": { "start": "node server.js", "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { "express": "4.17.1", "redis": "4.7.0" }, "author": "", "license": "ISC" } DockerfileFROM node WORKDIR /usr/src/app COPY ./ ./ RUN npm install CMD [ "node", "server.js" ]
- Likes
- 0
- Comments
- 7
- Viewcount
- 2.8K
Q&A
docker-compose ź° Docker Desktop ģģ ė¹ ģ§ź±“ź°ģ? command not found ė¼ź³ ėØė¤ģ
기씓ģ curl ė” ģ¤ģ¹ķ걓 ģģ ķź³ brew ė” ģ¤ģ¹ķė ģ ģģ ģ¼ė” ģėķ©ėė¤
- Likes
- 0
- Comments
- 1
- Viewcount
- 287
Q&A
Package.json ķģ¼ģ“ ģė¤ė ģ¤ė„ź° ėģ¤ģ§ ģė ź²½ģ°
ģ ė ėź°ģ ģķ©ģ“ź³ , ė°ė” npm ź“ė Ø ģ¤ė„ ģģ“ ģ“ėÆøģ§ ė¹ėź° ėźø“ķėė°, dangling ģ“미ģ§ė” ė§ė¤ģ“ģ øģ. ģ“ėÆøģ§ ģ“ė¦ģ“ ģ“ė¼ź³ ėģ¤ź³ ģģ dangling ģ“ė¼ź³ ķģė©ėė¤. ėź° ė커 ė¹ėķė ė°©ģģ“ ė°ė걓ź°ģ? ėźøė§ ģ“미ģ§ė” ģģ±ė걓 ėŖ»ģ°ė ģ“미ģ§ģøź°ģ?
- Likes
- 1
- Comments
- 2
- Viewcount
- 749
Q&A
3:46 get() ź“ė Ø ģ§ė¬ø
orElse(null) ģ“ė¼ź³ ķ“ģ¼ėģ§ ģėģ?
- Likes
- 1
- Comments
- 3
- Viewcount
- 287
Q&A
źø°ė³øźø° ź“ė Ø 문ģ ė립ėė¤.
ģ ė ģ“볓ģ§ė§.. ģ ź° ź³µė¶ķė°ė”ė ģė° ė¤ķģ±ģ ķģ©ķ“ģ ėŖØėģ ģ½ź² źµģ²“ķ ģ ģźø° ėė¬øģøź±° ź°ģģ. HashMap store = new HashMap(); ģ“ė ź² ė°ģ¼ė©“ ģ¬ģ©ķ ģ ģė ė©ģėė ķģ ģ ģ“ź³ (iterator()ź°ģ?) ķ¹ģ ģ ź° ģėŖ»ģź³ ģė ė¶ė¶ģ“ ģģ¼ė©“ ģė ¤ģ£¼ģøģ. ģ ė ź¶źøķ ė¶ė¶ģ“.. ģ¹ ģ“ķ리ģ¼ģ“ģ ģ¤ź³(?)ģģ ģ넼ė¤ģ“ Impl ź°ģ²“ģ 리ķ“ķģ ģ ģ ģøķ°ķģ“ģ¤ ķģ ģ¼ė” ė°ėģ§ė ź¶źøķė¤ģ.. MemberRepository repository = new MemoryMemberRepository(); ģ“ė° ė¶ė¶ģ ģ ģ“ė ź² ė°ėź±“ģ§ ź¶źøķ“ģ. ź°ė°ģģ ģ“ė¤ ģ„ģ ģ“ė ķøė¦¬ģ±ģ“ ģėź±“ģ§ ģź³ ģ¶ģµėė¤!
- Likes
- 0
- Comments
- 4
- Viewcount
- 271
Q&A
ģøķ 리ģ ģ“ģģ run ģ°½ģ“ė terminal ģ°½ ģė³ź²½ģ ģ“ė»ź²ķėģ?
ė¤ė„ø ė¶ė¶ģ ķ ė§ ģ¤ģ¹ ķ ģģ“ ė³ķėė° ģ½ģė¶ė¶ė§ ź·øėė”ė¤ģ ć ć
- Likes
- 0
- Comments
- 2
- Viewcount
- 1.7K
Q&A
ķ°ėÆøėģ ėŖ ė ¹ģ“
mvnw package ķ“ė ģėźøøė mvn clean packageė¼ź³ ķėź¹ ėė¤ģ (window ģ¬ģ©ģ)
- Likes
- 40
- Comments
- 5
- Viewcount
- 588




