Skip to content

Commit b95db7f

Browse files
authored
Update README.md
1 parent 2feccc6 commit b95db7f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,17 @@ Mustache view use double mustache for variables (message in the example), so the
4646
The `vue` variable generates the javascript code for the view instance creation. The triple mustache `{{{vue}}}`is use for javascript/html code unescaping.
4747

4848
#### With @AutoWired annotation
49-
This technique has the advantage of providing a globale instance of VueJS for all the actions of a controller:
49+
This technique has the advantage of providing a globale instance of VueJS for all the actions of a controller.
50+
Create a configuration class to allow the autowiring of **VueJS**:
51+
52+
```java
53+
@Configuration
54+
@ComponentScan("io.github.jeemv.springboot.vuejs")
55+
public class AppConfiguration {
56+
}
57+
```
58+
In your controller:
59+
5060
```java
5161
@Controller
5262
@RequestMapping("/ui/")

0 commit comments

Comments
 (0)