mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 17:59:03 +00:00
Merge branch '3.5.x' into 4.0.x
Closes gh-50744
This commit is contained in:
+3
-4
@@ -16,8 +16,6 @@
|
||||
|
||||
package org.springframework.boot.artemis.autoconfigure;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.apache.activemq.artemis.api.core.QueueConfiguration;
|
||||
import org.apache.activemq.artemis.api.core.RoutingType;
|
||||
import org.apache.activemq.artemis.api.core.SimpleString;
|
||||
@@ -31,6 +29,8 @@ import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import org.springframework.boot.system.ApplicationTemp;
|
||||
|
||||
/**
|
||||
* Configuration used to create the embedded Artemis server.
|
||||
*
|
||||
@@ -84,8 +84,7 @@ class ArtemisEmbeddedConfigurationFactory {
|
||||
if (this.properties.getDataDirectory() != null) {
|
||||
return this.properties.getDataDirectory();
|
||||
}
|
||||
String tempDirectory = System.getProperty("java.io.tmpdir");
|
||||
return new File(tempDirectory, "artemis-data").getAbsolutePath();
|
||||
return new ApplicationTemp().getDir("artemis-data").getAbsolutePath();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user