File tree Expand file tree Collapse file tree 5 files changed +82
-1
lines changed
java/guru/springframework/bootstrap/profilesysout Expand file tree Collapse file tree 5 files changed +82
-1
lines changed Original file line number Diff line number Diff line change
1
+ package guru .springframework .bootstrap .profilesysout ;
2
+
3
+ import org .springframework .context .annotation .Profile ;
4
+ import org .springframework .stereotype .Component ;
5
+
6
+ /**
7
+ * Created by jt on 5/21/16.
8
+ */
9
+ @ Component
10
+ @ Profile ("default" )
11
+ public class DefaultProfileSysOut {
12
+
13
+ public DefaultProfileSysOut () {
14
+ System .out .println ("##################################" );
15
+ System .out .println ("##################################" );
16
+ System .out .println ("## DEFAULT ##" );
17
+ System .out .println ("##################################" );
18
+ System .out .println ("##################################" );
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package guru .springframework .bootstrap .profilesysout ;
2
+
3
+ import org .springframework .context .annotation .Profile ;
4
+ import org .springframework .stereotype .Component ;
5
+
6
+ /**
7
+ * Created by jt on 5/21/16.
8
+ */
9
+ @ Component
10
+ @ Profile ("dev" )
11
+ public class DevProfileSysOut {
12
+
13
+ public DevProfileSysOut () {
14
+ System .out .println ("##################################" );
15
+ System .out .println ("##################################" );
16
+ System .out .println ("## DEV ##" );
17
+ System .out .println ("##################################" );
18
+ System .out .println ("##################################" );
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package guru .springframework .bootstrap .profilesysout ;
2
+
3
+ import org .springframework .context .annotation .Profile ;
4
+ import org .springframework .stereotype .Component ;
5
+
6
+ /**
7
+ * Created by jt on 5/21/16.
8
+ */
9
+ @ Component
10
+ @ Profile ("prod" )
11
+ public class ProdProfileSysOut {
12
+ public ProdProfileSysOut () {
13
+ System .out .println ("##################################" );
14
+ System .out .println ("##################################" );
15
+ System .out .println ("## PROD ##" );
16
+ System .out .println ("##################################" );
17
+ System .out .println ("##################################" );
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ package guru .springframework .bootstrap .profilesysout ;
2
+
3
+ import org .springframework .context .annotation .Profile ;
4
+ import org .springframework .stereotype .Component ;
5
+
6
+ /**
7
+ * Created by jt on 5/21/16.
8
+ */
9
+ @ Component
10
+ @ Profile ("qa" )
11
+ public class QAProfileSysOut {
12
+
13
+ public QAProfileSysOut () {
14
+ System .out .println ("##################################" );
15
+ System .out .println ("##################################" );
16
+ System .out .println ("## QA ##" );
17
+ System .out .println ("##################################" );
18
+ System .out .println ("##################################" );
19
+ }
20
+ }
Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ spring.activemq.pooled=false
3
3
guru.jms.server =10.10.10.123
4
4
guru.jms.port =3330
5
5
guru.jms.user =Ron
6
- guru.jms.password =Burgundy
6
+ guru.jms.password =Burgundy
7
+
8
+ spring.profiles.active =dev
You can’t perform that action at this time.
0 commit comments