V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  zhazi  ›  全部回复第 6 页 / 共 16 页
回复总数  303
1 ... 2  3  4  5  6  7  8  9  10  11 ... 16  
2021-12-09 01:39:43 +08:00
回复了 warcraft1236 创建的主题 程序员 Java 的性能能赶上 Go 了?
我直接好家伙,你这用框架都能推断出语言性能了
2021-12-08 19:29:47 +08:00
回复了 jmyz0455 创建的主题 程序员 学习数据库设计的正确方式是什么?
这个字段的命名 [signature] 比较合适

class Foo {
boolean signature; //boolean 类型
boolean hasSignature(){
return signature;
}
}

class Bar {
int signature; //int 类型
boolean hasSignature(){
return signature !=0 ;
}
}
学习数据库设计的正确方式把数据当成数据来看待。不要带入业务信息。业务信息由代码来控制
2021-11-29 14:32:11 +08:00
回复了 imherer 创建的主题 程序员 请教一个 SQL 写法
2021-05-08 14:25:19 +08:00
回复了 w292614191 创建的主题 Java 微服务在企业中如何复用?
微服务本来也不是为了处理复用问题的
Highly maintainable and testable
Loosely coupled
Independently deployable
Organized around business capabilities
Owned by a small team
2021-04-10 14:41:25 +08:00
回复了 RiceMarch 创建的主题 Java Java 泛型 接口返回类 如何面对 空?
Void
2021-03-26 08:37:34 +08:00
回复了 caowentao 创建的主题 职场话题 回顾了最近几场面试,感觉遇到小人了
@djoiwhud 你看的都是什么乱七八糟的书
2021-02-21 15:23:05 +08:00
回复了 fxjson 创建的主题 程序员 Java 如何解决内存泄露问题,有哪些手段
内存泄露是指,某个对象没用使用,没有释放内存,且随着系统运行时间增长,该对象消耗内存持续增长,最终引起系统崩溃。
如果某个对象没有使用,但是该对象使用的内存恒定。那么这个对象只是个普通的对象。

btw 我这面给你解决内存泄露的话先远离你周边的小伙伴,结交一些懂技术的就可以了
2021-01-03 15:15:39 +08:00
回复了 AAASUKA 创建的主题 Java Spring 里 Service 层分成接口+Impl 的好处是什么?
Should we use interfaces with our Service Beans?

Short answer: No.

If you want the long answer, here it is:

One of the main interests of using Spring is AOP. This is the technology that allows Spring to add new behaviors on top of your Beans: for instance, this is how transactions or security work.

In order to add those behaviors, Spring needs to create a proxy on your class, and there are two ways of creating a proxy:

If your class uses an interface, Spring will use a standard mechanism provided by Java to create a dynamic proxy.

If your class doesn’t use an interface, Spring will use CGLIB to generate a new class on the fly: this is not a standard Java mechanism, but it works as well as the standard mechanism.

Some people will also argue that interfaces are better for writing tests, but we believe we shouldn’t modify our production code for tests, and that all the new mocking frameworks (like EasyMock) allow you to create very good unit tests without any interfaces.

So, in the end, we find that interfaces for your Service beans are mostly useless, and that’s why we don’t recommend them (but we leave you with the option to generate them!).
2021-01-03 15:14:07 +08:00
回复了 AAASUKA 创建的主题 Java Spring 里 Service 层分成接口+Impl 的好处是什么?
粘一段 Jhispter 对这里的理解
2020-12-25 20:19:51 +08:00
回复了 liliumss 创建的主题 程序员 关于 DDD 的感想
还面临一众读不懂 ddd 瞎吓唬 ddd 的人,比如一楼。
2020-12-17 16:07:12 +08:00
回复了 Braisdom 创建的主题 程序员 凡事就怕问为什么(认识的升级)系列一
另外说一下你的开源项目,现在国内市场讲究攀交情比名气。所以找个好靠山背书(比如阿里的开源)比研究这些见效快
2020-12-17 16:05:02 +08:00
回复了 Braisdom 创建的主题 程序员 凡事就怕问为什么(认识的升级)系列一
问题挺好。但是我面试的时候从来都问我 堆、栈、算法、数据结构、图、树。卷就完了。你聊这些你不怕面试官答不上来吗?
你以为国内培训班是山寨谁的?
2020-12-15 09:10:22 +08:00
回复了 jimmyismagic 创建的主题 程序员 单点登录有什么问题?
你现在的问题不是研究单点登录,更应该重学一遍如何造句
2020-11-29 06:38:31 +08:00
回复了 RedrumSherlock 创建的主题 Java Spring 相关,有没有什么好的解决方案
使用 @entity 跟 spring 的 context 一点关系都没有。
2020-11-25 14:40:10 +08:00
回复了 kkkeen 创建的主题 京东 华强北的仿造品都能上京东自营了,敢买吗
果粉急了
远程验签,核心接口远程调用
1 ... 2  3  4  5  6  7  8  9  10  11 ... 16  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2812 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 14:11 · PVG 22:11 · LAX 07:11 · JFK 10:11
Developed with CodeLauncher
♥ Do have faith in what you're doing.