Skip to content

Commit 0beeea9

Browse files
committed
2 parents 01e0866 + 557a99b commit 0beeea9

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

README.md

+46-1
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,54 @@ First, add the SF Java UI library to your java web project:
4747
```
4848
Add the oss repository:
4949
```xml
50-
The official version Not yet deployed
50+
The official version Not yet deployed to sonatype.
5151
```
5252

53+
Please find the required instruction to configure [bintray.com](https://bintray.com/jsonschema-javaui/sf-java-ui/sf-java-ui) repository to your setting.xml
54+
55+
#### Using spring boot
56+
57+
If you a are using spring boot to develop your project, you can add the annotation below to your main spring boot class in order to run the servlet context loader to inialize the library
58+
59+
```Java
60+
61+
@ServletComponentScan(basePackages = { "io.asfjava.ui.core" })
62+
63+
```
64+
You can follow the example below used in the demo application
65+
66+
```Java
67+
import org.springframework.boot.SpringApplication;
68+
import org.springframework.boot.autoconfigure.SpringBootApplication;
69+
import org.springframework.boot.web.servlet.ServletComponentScan;
70+
71+
@SpringBootApplication
72+
/*
73+
* The annotation below used to scan the servlet context loader added to the sf-java-ui library
74+
* in order to initialize the library @ server startup
75+
*
76+
* */
77+
@ServletComponentScan(basePackages = { "io.asfjava.ui.core" })
78+
public class DemoApplication {
79+
public static void main(String[] args) {
80+
SpringApplication.run(DemoApplication.class, args);
81+
}
82+
}
83+
84+
85+
```
86+
87+
#### Using other java web project
88+
89+
You may add this line of code on your custom server startup listener.
90+
91+
```Java
92+
93+
SFJavaUi.initialize();
94+
95+
```
96+
97+
#### Let's code
5398
Create a new Rest Web Service. (example using spring)
5499

55100
```Java

0 commit comments

Comments
 (0)