File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
spring-cookbook/src/test/java/me/sunny/demo/spring/cookbook Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11package me .sunny .demo .spring .cookbook ;
2-
3- import java .util .HashMap ;
4- import java .util .Iterator ;
5- import java .util .Map ;
6-
72import com .alibaba .fastjson .JSON ;
83
94import org .junit .Test ;
105import org .junit .runner .RunWith ;
116import org .springframework .beans .factory .annotation .Autowired ;
127import org .springframework .core .env .Environment ;
13- import org .springframework .core .env .PropertySource ;
148import org .springframework .test .context .ContextConfiguration ;
159import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
16- import org .springframework .web .context .support .StandardServletEnvironment ;
10+
11+ /**
12+ * 测试获取Spring的环境变量、配置信息
13+ */
1714
1815@ RunWith (SpringJUnit4ClassRunner .class )
1916@ ContextConfiguration ({"classpath:spring.xml" })
Original file line number Diff line number Diff line change 1616import org .springframework .test .context .web .WebAppConfiguration ;
1717import org .springframework .web .context .support .StandardServletEnvironment ;
1818
19+ /**
20+ * 测试获取Spring Web 的环境变量、配置信息
21+ */
22+
1923@ RunWith (SpringJUnit4ClassRunner .class )
2024@ WebAppConfiguration
2125@ ContextConfiguration ({"classpath:spring.xml" })
You can’t perform that action at this time.
0 commit comments