質問編集履歴

1

設定ファイルの詳細を追記。

2018/03/29 11:39

投稿

AIUeno
AIUeno

スコア15

test CHANGED
File without changes
test CHANGED
@@ -94,6 +94,46 @@
94
94
 
95
95
  </dependency>
96
96
 
97
+
98
+
99
+ <build>
100
+
101
+ <plugins>
102
+
103
+ <plugin>
104
+
105
+ <groupId>org.springframework.boot</groupId>
106
+
107
+ <artifactId>spring-boot-maven-plugin</artifactId>
108
+
109
+ <configuration>
110
+
111
+ <archive>
112
+
113
+ <manifest>
114
+
115
+ <mainClass>hoge.fugaApplication</mainClass>
116
+
117
+ <addClasspath>true</addClasspath>
118
+
119
+ </manifest>
120
+
121
+ <manifestEntries>
122
+
123
+ <Class-Path>./config</Class-Path>
124
+
125
+ </manifestEntries>
126
+
127
+ </archive>
128
+
129
+ </configuration>
130
+
131
+ </plugin>
132
+
133
+ </plugins>
134
+
135
+ </build>
136
+
97
137
  ...
98
138
 
99
139
 
@@ -173,3 +213,9 @@
173
213
 
174
214
 
175
215
  お詳しい方にご教示いただきたく、どうぞよろしくお願いいたします。
216
+
217
+
218
+
219
+ ### 追記
220
+
221
+ application.propertiesの設定を環境によって変更できるよう、jarからの相対位置で外部に設定しています。このため、設定が読み込めないようです。