Sobes.tech

Java

profil tablosu oluştur ( profile_id serial primary key, user_id integer not null references users(user_id) ); kullanıcılar tablosuna ekle seç x generate_series(1, 99999) olarak seq(x) ile profiller tablosuna ekle seç x, 100000 - x generate_series(1, 99999) olarak seq(x) ile u.user_id, p.profile_id, p.user_id as profile_user_id Kullanıcılar u Profiller p ile u.users_id = p.user_id üzerinde join yapın

172

Tüm bean'ler singleton'dır. Aynı REST metoduna birçok istek gelir. Çoklu iş parçacığı güvenliği nasıl sağlanır? Spring varsayılan olarak bir şey garanti ediyor mu?

172
/6