Browse Source

Implementacion de @Autowired en la clase

master
vigliom 2 years ago
parent
commit
32bd280d7a
4 changed files with 21 additions and 8 deletions
  1. +5
    -0
      .idea/codeStyles/codeStyleConfig.xml
  2. +12
    -7
      .idea/workspace.xml
  3. +3
    -0
      src/main/java/com/jorpelu/ServicioDeProductos/ProductoService.java
  4. +1
    -1
      src/main/resources/beans.xml

+ 5
- 0
.idea/codeStyles/codeStyleConfig.xml View File

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

+ 12
- 7
.idea/workspace.xml View File

@ -4,10 +4,8 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="d0e2ddd8-efdc-4dce-b0fd-07c7411e37c2" name="Changes" comment="Intento añadir anotaciones, pero no me deja entrar al namespace">
<list default="true" id="d0e2ddd8-efdc-4dce-b0fd-07c7411e37c2" name="Changes" comment="Sigo sin conseguir anñadir Required, El resto me va bien">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/jorpelu/ServicioDeProductos/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/jorpelu/ServicioDeProductos/Main.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/jorpelu/ServicioDeProductos/ProductoService.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/jorpelu/ServicioDeProductos/ProductoService.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/beans.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/beans.xml" afterDir="false" />
</list>
@ -45,7 +43,6 @@
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
"WebServerToolWindowFactoryState": "false",
"last_opened_file_path": "C:/ProyectosInteliJ/CarreraRelevos",
"node.js.detected.package.eslint": "true",
@ -100,7 +97,7 @@
<workItem from="1669327599329" duration="2673000" />
<workItem from="1669370939836" duration="5274000" />
<workItem from="1669388229176" duration="732000" />
<workItem from="1669403092395" duration="7671000" />
<workItem from="1669403092395" duration="9001000" />
</task>
<task id="LOCAL-00001" summary="innnit">
<created>1669371969480</created>
@ -137,7 +134,14 @@
<option name="project" value="LOCAL" />
<updated>1669411595874</updated>
</task>
<option name="localTasksCounter" value="6" />
<task id="LOCAL-00006" summary="Sigo sin conseguir anñadir Required, El resto me va bien">
<created>1669412837337</created>
<option name="number" value="00006" />
<option name="presentableId" value="LOCAL-00006" />
<option name="project" value="LOCAL" />
<updated>1669412837337</updated>
</task>
<option name="localTasksCounter" value="7" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -160,6 +164,7 @@
<MESSAGE value="Creo una interfaz para interactuar con el producto" />
<MESSAGE value="Actualizo README.md" />
<MESSAGE value="Intento añadir anotaciones, pero no me deja entrar al namespace" />
<option name="LAST_COMMIT_MESSAGE" value="Intento añadir anotaciones, pero no me deja entrar al namespace" />
<MESSAGE value="Sigo sin conseguir anñadir Required, El resto me va bien" />
<option name="LAST_COMMIT_MESSAGE" value="Sigo sin conseguir anñadir Required, El resto me va bien" />
</component>
</project>

+ 3
- 0
src/main/java/com/jorpelu/ServicioDeProductos/ProductoService.java View File

@ -1,9 +1,12 @@
package com.jorpelu.ServicioDeProductos;
import org.springframework.beans.factory.annotation.Autowired;
import java.awt.*;
import java.util.Collection;
public class ProductoService {
@Autowired
private ISercicioProductoDAO productoDAO;


+ 1
- 1
src/main/resources/beans.xml View File

@ -11,7 +11,7 @@
init-method="init">
</bean>
<bean id="ProductoService" class="com.jorpelu.ServicioDeProductos.ProductoService" autowire="byType">
<bean id="ProductoService" class="com.jorpelu.ServicioDeProductos.ProductoService">
</bean>


Loading…
Cancel
Save