Desarrollo

En nuestro sts nos vamos a File->New->Maven Project
Login Test
Seleccionamos Create simple project (skip archetype selection) y presionamos next
Login Test
LLenamos los siguientes campos y presionamos Finish:
En el directoriosrc/main/resources/ creamos un folder META-INF
En el directorio src/main/resources/META-INF/ creamos el archivo beans.xml escribimos lo siguiente:
 
  
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
       version="4.0"
       bean-discovery-mode="annotated">
</beans>