# What are custom changes in start-worker options in Spring boot autoconfigure

**URL:** <https://community.temporal.io/t/what-are-custom-changes-in-start-worker-options-in-spring-boot-autoconfigure/6670>\
**Category:** Community Support\
**Tags:** java-sdk, springboot\
**Created:** [December 7, 2022, 4:23am UTC](https://community.temporal.io/t/what-are-custom-changes-in-start-worker-options-in-spring-boot-autoconfigure/6670 "2022-12-07T04:23:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruchir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ruchir/32/6141_2.png) [@Ruchir](https://community.temporal.io/u/Ruchir)\
**Post date:** [December 7, 2022, 4:23am UTC](https://community.temporal.io/t/what-are-custom-changes-in-start-worker-options-in-spring-boot-autoconfigure/6670/1 "2022-12-07T04:23:34Z")

</div>

Hi,

In this [link](https://github.com/temporalio/sdk-java/tree/master/temporal-spring-boot-autoconfigure-alpha#workers-configuration), for the `start-workers` attribute, it is mentioned that

> disable starting WorkersFactory if you want to make any custom changes before the start

What should be considered as custom changes from the following: WorkerFactoryOptions, WorkflowWorkerOptions, ActivityWorkerOptions?

Also is there a sample Temporal SpringBoot autoconfigure project available to refer to?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [December 7, 2022, 4:40am UTC](https://community.temporal.io/t/what-are-custom-changes-in-start-worker-options-in-spring-boot-autoconfigure/6670/2 "2022-12-07T04:40:54Z")

</div>

Setting start-workers to false makes sure workerFactory.start() is not called and you would have to autowire WorkerFactory and call start on it explicitly.

> What should be considered as custom changes

Currently could be to create additional workers that have not been configured or auto-discovered via `factory.newWorker(...)` or get existing worker from factory and register additional workflow/activity types, via `factory.tryGetWorker(tqname)`.

> is there a sample Temporal SpringBoot autoconfigure project available to refer to

Yes [here](https://github.com/tsurdilo/temporal-springboot-demo) is one

---

<div class="post-metadata">

**Author:** ![nishikant.kumar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/nishikant.kumar/32/5630_2.png) [@nishikant.kumar](https://community.temporal.io/u/nishikant.kumar)\
**Post date:** [February 18, 2025, 8:21am UTC](https://community.temporal.io/t/what-are-custom-changes-in-start-worker-options-in-spring-boot-autoconfigure/6670/3 "2025-02-18T08:21:23Z")

</div>

I have a total of 4 workers in spring boot project. However, I just want to start only 2 workers. because Activity implementation is not ready for other 2 workflow worker. How to achieve this?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [February 19, 2025, 3:49am UTC](https://community.temporal.io/t/what-are-custom-changes-in-start-worker-options-in-spring-boot-autoconfigure/6670/4 "2025-02-19T03:49:57Z")

</div>

Do you use worker autodiscovery? I guess you could move activities to a package thats not in discovery path you define, or put those not yet completed activities in a different activity interface and dont annotate it with @ActivityImpl.  
If you give more info on your specific setup could try give more details
