File tree Expand file tree Collapse file tree
java/org/baeldung/controller
test/java/org/baeldung/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 </parent >
1515
1616 <dependencies >
17+ <dependency >
18+ <groupId >com.fasterxml.jackson.core</groupId >
19+ <artifactId >jackson-databind</artifactId >
20+ </dependency >
1721
1822 <!-- Spring -->
1923
Original file line number Diff line number Diff line change 1- package com .baeldung .controller ;
1+ package org .baeldung . controller .controller ;
22
3- import com .baeldung .student .Student ;
3+ import org .baeldung . controller .student .Student ;
44import org .springframework .web .bind .annotation .GetMapping ;
55import org .springframework .web .bind .annotation .PathVariable ;
66import org .springframework .web .bind .annotation .RestController ;
Original file line number Diff line number Diff line change 1- package com .baeldung .controller ;
1+ package org .baeldung . controller .controller ;
22
3- import com .baeldung .student .Student ;
3+ import org .baeldung . controller .student .Student ;
44import org .springframework .stereotype .Controller ;
55import org .springframework .web .bind .annotation .GetMapping ;
66import org .springframework .web .bind .annotation .PathVariable ;
Original file line number Diff line number Diff line change 22/**
33 * @author Prashant Dutta
44 */
5- package com .baeldung .controller ;
5+ package org .baeldung . controller .controller ;
66
77import org .springframework .stereotype .Controller ;
88import org .springframework .web .bind .annotation .GetMapping ;
Original file line number Diff line number Diff line change 1- package com .baeldung .student ;
1+ package org .baeldung . controller .student ;
22
33public class Student {
44 private String name ;
Original file line number Diff line number Diff line change 1010 http://www.springframework.org/schema/context/spring-context-4.0.xsd
1111 http://www.springframework.org/schema/mvc
1212 http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd" >
13- <context : component-scan base-package =" com .baeldung.controller" />
13+ <context : component-scan base-package =" org .baeldung.controller .controller" />
1414 <mvc : annotation-driven />
1515
1616 <bean class =" org.springframework.web.servlet.view.InternalResourceViewResolver" >
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1- package com .baeldung .test ;
1+ package org .baeldung .controller ;
22
33import org .junit .Assert ;
44import org .junit .Before ;
1414import org .springframework .web .context .WebApplicationContext ;
1515import org .springframework .web .servlet .ModelAndView ;
1616
17- import com .baeldung .student .Student ;
17+ import org .baeldung . controller .student .Student ;
1818import com .fasterxml .jackson .databind .ObjectMapper ;
1919
2020@ RunWith (SpringJUnit4ClassRunner .class )
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments