Skip to content

Commit c82354c

Browse files
committed
恢复样例
1 parent c7afa65 commit c82354c

File tree

7 files changed

+2
-116
lines changed

7 files changed

+2
-116
lines changed

examples/fit-example/02-static-plugin/app-assistant/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@
3939
<artifactId>default-weather-for-static</artifactId>
4040
<version>1.0-SNAPSHOT</version>
4141
</dependency>
42-
<dependency>
43-
<groupId>org.fitframework.example</groupId>
44-
<artifactId>other-weather-for-static</artifactId>
45-
<version>1.0-SNAPSHOT</version>
46-
</dependency>
47-
<dependency>
48-
<groupId>org.fitframework.plugin</groupId>
49-
<artifactId>fit-i18n-registry</artifactId>
50-
<version>${fit.version}</version>
51-
</dependency>
5242
</dependencies>
5343

5444
<build>

examples/fit-example/02-static-plugin/app-assistant/src/main/java/modelengine/fit/example/controller/AssistantController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import modelengine.fit.http.annotation.GetMapping;
1111
import modelengine.fitframework.annotation.Component;
1212
import modelengine.fitframework.annotation.Fit;
13-
import modelengine.fitframework.util.LocaleContextHolder;
1413

1514
/**
1615
* 表示控制器。
@@ -31,8 +30,8 @@ public AssistantController(@Fit Weather weather) {
3130
*
3231
* @return 表示天气信息的 {@link String}。
3332
*/
34-
@GetMapping(path = "/locale")
33+
@GetMapping(path = "/weather")
3534
public String getWeather() {
36-
return LocaleContextHolder.getLocale().getLanguage();
35+
return this.weather.get();
3736
}
3837
}

examples/fit-example/02-static-plugin/app-assistant/src/main/java/modelengine/fit/example/controller/controller2.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/fit-example/02-static-plugin/plugin-default-weather/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
<artifactId>weather-for-static</artifactId>
3535
<version>1.0-SNAPSHOT</version>
3636
</dependency>
37-
<dependency>
38-
<groupId>org.fitframework.service</groupId>
39-
<artifactId>fit-http-classic</artifactId>
40-
<version>${fit.version}</version>
41-
</dependency>
4237
</dependencies>
4338

4439
<build>

examples/fit-example/02-static-plugin/plugin-default-weather/src/main/java/modelengine/fit/example/DefalutLocaleResolveConfig.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

examples/fit-example/02-static-plugin/plugin-other-weather/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
<artifactId>weather-for-static</artifactId>
3535
<version>1.0-SNAPSHOT</version>
3636
</dependency>
37-
<dependency>
38-
<groupId>org.fitframework.service</groupId>
39-
<artifactId>fit-http-classic</artifactId>
40-
<version>${fit.version}</version>
41-
</dependency>
4237
</dependencies>
4338

4439
<build>

examples/fit-example/02-static-plugin/plugin-other-weather/src/main/java/modelengine/fit/example/OtherLocaleResolveConfig.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)