Programmazione

Domande e risposte per programmatori professionisti ed entusiasti







10
Concedi ** tutti ** i privilegi sul database
Ho creato un database, ad esempio "mydb". CREATE DATABASE mydb CHARACTER SET utf8 COLLATE utf8_bin; CREATE USER 'myuser'@'%' IDENTIFIED BY PASSWORD '*HASH'; GRANT ALL ON mydb.* TO 'myuser'@'%'; GRANT ALL ON mydb TO 'myuser'@'%'; GRANT CREATE ON mydb TO 'myuser'@'%'; FLUSH PRIVILEGES; Ora posso accedere al database da qualsiasi luogo, …



23
Come posso indirizzare gli avvisi di cast non controllati?
Eclipse mi sta avvisando del seguente modulo: Tipo di sicurezza: cast non selezionato da Object a HashMap Questo è da una chiamata a un'API su cui non ho alcun controllo su quale restituisce Object: HashMap<String, String> getItems(javax.servlet.http.HttpSession session) { HashMap<String, String> theHash = (HashMap<String, String>)session.getAttribute("attributeKey"); return theHash; } Vorrei evitare …
611 java  generics  warnings 






Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.