weixincloud / wxcloudrun-springboot Goto Github PK
View Code? Open in Web Editor NEW微信云托管 springboot 框架模版
License: MIT License
微信云托管 springboot 框架模版
License: MIT License
微信云托管快速开始页面 访问404错误。
@RestController
public class CounterController {
final CounterService counterService;
final Logger logger;
public CounterController(@Autowired CounterService counterService) {
this.counterService = counterService;
this.logger = LoggerFactory.getLogger(CounterController.class);
}
这里有几个小知识点:
1、既然使用了lombok,那就应该用 @Slf4j
来简化logger的获取;
2、构造函数里面的@Autowried
可以去掉。
3、既然使用了lombok,就要习惯用 @RequiredArgsConstructor
所以,这些代码可以简化为,
@RestController
@RequiredArgsConstructor
@Slf4j
public class CounterController {
final CounterService counterService;
项目里面,类似的得过且过的培训班代码还是很多。
比如getCounter和upsertCount,随意的写。从这个角度看,代码不像是自动生成的。
但是可以精简的代码还是很多,又像自动生成的。
还有:Dockerfile里面,既然有修改mirror以加速apk的,为什么要把apk操作放在它上面一行?这个脑回路!
至于为什么会上来吐槽?
贵司的微信云托管,做的实在对不起自己的名气,甚至都够不上商业化的程度。做了俩天的尝试,很是折磨。发了的工单也不回。
bug来看,测试不是外包,就是实习。开发水平从这个源码看,也算是可以理解。
产品经理的脑洞更大,如果用镜像,只能用你们的镜像服务,而且价格是比微信云服务贵很多。建议贵司去查一下,这俩个产品经理之间是否有什么特殊关系?父子?情侣?
为什么不能用自己的镜像服务?
是够可以增加调用mysql的demo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.