Bonjour developpeur
j'ai un probleme c'est que eclipse ne reconnait pas @Pattern
j'utilise le jdk 1.6.0_12 pourtant !!!
j'ai utilisé le template SpringMVC et les jar sont du type SPring MVC3.0.0
POuvez vous me dire quel est le bean !!!!
merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 import org.springframework.beans.factory.annotation.Autowired; import org.springframework.format.annotation.NumberFormat; import org.springframework.stereotype.Controller; import org.springframework.web.bind.support.SessionStatus; import com.sun.istack.internal.NotNull; import validator.PersonneFormValidator; import dao.impl.PersonneDao; @Controller public class IdentificationController { @Autowired private PersonneDao personneDao; @Autowired private PersonneFormValidator validator; @NotNull @NumberFormat(pattern="[0-9]+") String id; @NotNull // @Pattern(regexp="(\\w)*(_-)*(\\w)+@(\\w)+.(\\w)+") @Pattern(regexp="(\\w)*(_-)*(\\w)+@(\\w)+.(\\w)+") String password; }
Partager