# Spring.temporal.connection.target.namespace not getting picked up from application.properties file

**URL:** <https://community.temporal.io/t/spring-temporal-connection-target-namespace-not-getting-picked-up-from-application-properties-file/9220>\
**Category:** Community Support\
**Tags:** springboot\
**Created:** [August 17, 2023, 5:26am UTC](https://community.temporal.io/t/spring-temporal-connection-target-namespace-not-getting-picked-up-from-application-properties-file/9220 "2023-08-17T05:26:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartik\_Chandra](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kartik_chandra/32/4182_2.png) [@Kartik\_Chandra](https://community.temporal.io/u/Kartik_Chandra)\
**Post date:** [August 17, 2023, 5:26am UTC](https://community.temporal.io/t/spring-temporal-connection-target-namespace-not-getting-picked-up-from-application-properties-file/9220/1 "2023-08-17T05:26:46Z")

</div>

Hi,

I am currently trying to use the temporal-spring-boot-starter-alpha SDK to setup [temporal.io](http://temporal.io) in my java project.

I am able to setup my project as per the doumentation and make it run successfully. However, I observed that even though I have configured the _“spring.temporal.connection.target.namespace”_ in my _application.properties_ file, it is not getting considered when I try to start a workflow. I get the following error, **NOT\_FOUND: Namespace name “default” not found**

```auto
spring.temporal.connection.target.namespace=${TEMPORAL_NAMESPACE}

```

  
I have also created a bean implementing the \*TemporalOptionsCustomizer\* interface to customize the options. Only if I explicitly set the namespace here, then the workflow starts successfully without any issues.

_Customizer bean implementation_

```auto
@Component
public class WorkflowClientConfigurer implements
    TemporalOptionsCustomizer<WorkflowClientOptions.Builder> {

  @Value("${TEMPORAL_NAMESPACE}")
  private String temporalNamespace;

  @NotNull
  @Override
  public WorkflowClientOptions.Builder customize(
      @NotNull WorkflowClientOptions.Builder optionsBuilder) {

    optionsBuilder
        .setNamespace(temporalNamespace)
        .setContextPropagators(List.of(new ContextPropagator1(),
            new ContextPropagator2()));

    return optionsBuilder;
  }
}

```

  

**Could someone help to understand if this is the expected behavior or am I doing something wrong here?**

Regards,  
Kartik

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [August 17, 2023, 7:18pm UTC](https://community.temporal.io/t/spring-temporal-connection-target-namespace-not-getting-picked-up-from-application-properties-file/9220/2 "2023-08-17T19:18:44Z")

</div>

Hello @Kartik_Chandra  
I think the property names is `spring.temporal.namespace` ~~spring.temporal.connection.namespace~~

We have an example here [https://github.com/temporalio/samples-java/blob/3b78993e4184f7e010e25ba054deb4fcccec1572/springboot/src/main/resources/application-tc.yaml#L1](https://github.com/temporalio/samples-java/blob/3b78993e4184f7e010e25ba054deb4fcccec1572/springboot/src/main/resources/application-tc.yaml#L1) in case it helps,

Let me know if it works,

Regards,  
Antonio

---

<div class="post-metadata">

**Author:** ![Kartik\_Chandra](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kartik_chandra/32/4182_2.png) [@Kartik\_Chandra](https://community.temporal.io/u/Kartik_Chandra)\
**Post date:** [August 18, 2023, 7:42am UTC](https://community.temporal.io/t/spring-temporal-connection-target-namespace-not-getting-picked-up-from-application-properties-file/9220/3 "2023-08-18T07:42:49Z")

</div>

Hi @antonio.perez ,

Thanks a lot for your inputs, it worked for me.  
Just a correction to your response, the property name is `spring.temporal.namespace` 🙂  
Refer: [https://github.com/temporalio/sdk-java/blob/master/temporal-spring-boot-autoconfigure-alpha/README.md#connection-setup](https://github.com/temporalio/sdk-java/blob/master/temporal-spring-boot-autoconfigure-alpha/README.md#connection-setup)

Regards,  
Kartik
