Spring Boot Integration test sử dụng có cả mockup lẫn service thật theo các bước như sau: 1. Khởi tạo project theo các bước này: https://stackask.com/question/huong-dan-su-dung-spring-boot-test-controller/ 2. Giả sử chúng ta có GoodbyeController thế này: package com.example.spring_test.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import ...
Stack Ask Latest Questions
Hi mọi người.hiện tại em đang có ý định làm chức năng xác thực (2FA)-TOTP tích hợp với Spring Security. Em có tìm hiểu 1 số bài hướng dẫn nhưng các bài đó vẫn đúng ý em lắm.Em chưa ...
Hello mọi người , Sau khi em tạo và dùng View trong SQL thì em thấy rất tiện dụng ,App Spring Boot của em gọi đến View lấy dữ liệu rất dễ dàng, em có một thắc là khi ...
Mọi người phân biệt cho e giữa @fixedRate và @fixedDelay trong annotation @Scheduled spring boot. E cảm ơn.
(Edit ) Spring + Tomcat có tạo được static file url kiểu localhost:8000/image_name.jpg như Nginx không ạ. Kiểu xem ảnh trên browser chứ không download xuống
Chào anh ạ, em đang học về Spring Boot và đang gặp vấn đề ở việc render file jsp. Như trong hinh, em đã set up cho chạy vào class HomeController nhưng không hiểu sao ở chỗ return ...