File tree Expand file tree Collapse file tree
main/java/com/baeldung/spring/cloud/config/client
test/java/com/baeldung/spring/cloud/config/client
main/java/com/baeldung/spring/cloud/config/server
test/java/com/baeldung/spring/cloud/config/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 </snapshots >
7777 </repository >
7878 </repositories >
79-
8079</project >
Original file line number Diff line number Diff line change 1010import org .springframework .web .bind .annotation .RestController ;
1111
1212@ SpringBootApplication @ RestController public class ConfigClient {
13-
1413 @ Value ("${user.role}" ) private String role ;
1514
1615 @ Value ("${user.password}" ) private String password ;
Original file line number Diff line number Diff line change 77import org .springframework .test .context .web .WebAppConfiguration ;
88
99@ RunWith (SpringJUnit4ClassRunner .class ) @ SpringApplicationConfiguration (classes = ConfigClient .class ) @ WebAppConfiguration public class ConfigClientTests {
10-
1110 @ Test public void contextLoads () {
1211 }
13-
1412}
Original file line number Diff line number Diff line change 1313 <module >server</module >
1414 <module >client</module >
1515 </modules >
16-
1716</project >
Original file line number Diff line number Diff line change 7979 </snapshots >
8080 </repository >
8181 </repositories >
82-
8382</project >
Original file line number Diff line number Diff line change 66import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
77
88@ SpringBootApplication @ EnableConfigServer @ EnableWebSecurity public class ConfigServer {
9-
109 public static void main (String [] args ) {
1110 SpringApplication .run (ConfigServer .class , args );
1211 }
Original file line number Diff line number Diff line change 77import org .springframework .test .context .web .WebAppConfiguration ;
88
99@ RunWith (SpringJUnit4ClassRunner .class ) @ SpringApplicationConfiguration (classes = ConfigServer .class ) @ WebAppConfiguration public class ConfigServerTests {
10-
1110 @ Test public void contextLoads () {
1211 }
13-
1412}
You can’t perform that action at this time.
0 commit comments