Comments (3)
Java1.8以上才支持这个参数: -parameters
from solon.
赞!!!Solon 支持:java 1.8, java 11, java 17 (不支持 1.8 以下);;;控制器获取参数的技术处理有2种:
- 使用 @param 注解 //会增加很多代码量,看着不优雅
@Post
@Mapping("/api/removes")
public String remove(@Param("ids") String ids) {
return ids;
}
2 增加编译参数:-parameters
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<compilerArgument>-parameters</compilerArgument>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
solon-parent 里已添加了这条引用。
from solon.
另外,1.9.4 已发布
from solon.
Related Issues (20)
- solon-openapi2-knife4j HOT 8
- BUG: java.lang.NoClassDefFoundError: org/noear/socketd/utils/Utils HOT 3
- Auth 中 exclude的参数疑问 HOT 11
- Idea中测试时,日志输出混合问题 HOT 9
- 任务发放:websocket 接口增加支持 stomp 和 sockjs 支持! HOT 1
- smart-doc-maven-plugin 文档最下方的连接失效了 HOT 1
- jobRemove _scheduler.resumeJob? HOT 4
- 内核solon模块精简讨论 HOT 3
- solon 的 Jredis 发布/订阅 功能失效 HOT 9
- 添加 wsdl 的简化支持 HOT 1
- 官方网址无法访问,如何看文档 HOT 4
- solon 框架是否可以增加Armeria容器支持 HOT 4
- Two serialization protocols `nami.coder.fury` and `solon.serialization.fury` in Solon are vulnerable, the modules associated with them are at risk of RCE attacks. HOT 7
- 希望升级一下第三方库的依赖 HOT 4
- 任务发放:优化 onMissingBean 条件与 List[Bean] 注入的边界问题 HOT 2
- 同时有 queryString 和 from-data 参数时,Controller 方法中的参数无法正确注入 HOT 4
- 建议官网RPC未来支持高性能序列化框架-flatbuffers和simple-binary-encoding HOT 1
- Solon 框架可以增加Javalin容器支持 HOT 2
- 建议Solon 未来可以支持物联网MQTT协议 HOT 2
- 新增组件 Solon Cloud SnailJob HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solon.