由买买提看人间百态

topics

全部话题 - 话题: override
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
C*******e
发帖数: 2163
1
谢谢楼上各位,在公司当然是这样,本来就是business, 当然business的那套标准
回来update一下:
这个是在医院工作而且自己招过lab tech师姐的意见:主要是,要足够formal表现出重
视,但是不可以override你的老板,或者override你的职位,学校医院的tech就是一小
民工,搞business formal让人感觉你想当你老板的头儿吗;当然主要还是要qualify,
要迎合老板工作上的要求,学术圈还是看手艺的;衣服么,只要不screw的个人形象就好
i*********t
发帖数: 5873
2
来自主题: LeisureTime版 - Why Chinese Mothers Are Superior
大概觉得好玩,昨天同事发给我下面这篇文章,今儿一边开会一边扫了遍,刚才发现买
买提首页头条就是这个amy chua的新闻,有兴趣的同学耐心读读,挺有意思的。
1.我开始看还在笑,后来慢慢僵住了。
2.没读过她别的书/文章,想知道她怎么对孩子进行挫折教育的。假如她小二弹琴左右
手乱套就是改不过来,怎么办?恐怕孩子都不用她骂,自己都觉得自己是garbage了。
3.“nothing is fun until you're good at it”这是什么精英逻辑?一无所长的孩子
难道都是抑郁症的胚子?
A lot of people wonder how Chinese parents raise such stereotypically
successful kids. They wonder what these parents do to produce so many math
whizzes and music prodigies, what it's like inside the family, and whether
they could do it too. Well, I... 阅读全帖
k****t
发帖数: 12697
3
来自主题: PhotoGear版 - 闪光灯疑问
拿了你这多包子, HOHO.
闪光补偿和环境光补偿是分开的, 不会OVERRIDE. (如果同时在灯上和机上设置闪光补
偿, 灯上的OVERRIDE 机上的).
不加补偿时是50/50. 机上设的是环境光补偿,-1, 环境光变25. 闪光补偿机上灯上设都
可以, +2/3, 50 X 2^2/3 =79. 所以这样 就是25/79.
k****t
发帖数: 12697
4
来自主题: PhotoGear版 - 被STAPLES BL了
特坏消息: 这一天终于来了.
从5月中开始, ONLINE ONLY 的CPN (25/100 ETC) 在IN STORE 不能用了.
以前只不过在CPN 上有句话, ONLINE/CATALOG ONLY, 小二要是愿意把CODE 手打进去就
WORK, 不需MANAGER, 或者干脆用CODE 39 BARCODING 产生个BARCODE 让小二SCAN.
现在死呆跑POS 系统有新的IMPLEMENTATION, ONLINE 的CPN 在STORE 里SCAN, 会说"
CODE NOT IN DATABASE", 还不让MANAGER OVERRIDE. 偶上次去买KINDLE 想用了25/100
, 被NOT IN DATABASE 了. MANAGER 过来一看, 还不让OVERRIDE, 怒了, 不用CPN直接
TAKE 25 OFF TOTAL. 不过可一不可再, 以后IN STORE 最好的大概就是15% OFF, 要$
200 以上的PURCHASE 才能和30/150 扯平.
s********r
发帖数: 2308
5
135L多实惠啊, USM, 2 UD elements,MF override,才800多刀,全副人像应该收一只
吧。
相比下鞋厂的135/2DC, 螺丝刀,无ED,无MF override, 1100刀,坑爹啊
n********g
发帖数: 138
6
来自主题: PhotoGear版 - Staples 6DKit 1919$+ tax+5% reward. YMMV
前几天错过新蛋的 2040$很是不爽。 这两天图钉店给力, 有 20% off any item in
store coupon。 图钉店首页就有。
具体参考
http://slickdeals.net/permadeal/98132/staples-stores-staples-pr
因为图钉店店里不 carry这些高级相机。coupon只是instore的 所以 得要 搞个trick。
具体搞法就是去店里的一电脑里 自己输入 网上 order,然后 选择 pay in store。
然后 打印机打出来2张 纸。 拿那两张纸去结账。 结账时会问 Reward卡 号, 别忘了
提前注册一个, 5% back on all purchases.
这样就把 online order变成 in store了。 之后就可以用那个20% 胖子。
不过 这个 一定得需要manager override。所以还是 YMMV的
我跑了3个 图钉店, 终于在最后一个相对富裕的区的图钉店, 店长根本不care的就
给俺 override了。 其它两个店店长都 找借口不给俺弄。
结果就 搞下来了6D ki... 阅读全帖
s*****n
发帖数: 10890
7
来自主题: PhotoGear版 - 版神看进来 较色求教~
找到一个帖子,应该是intel显卡override icc了。那个exe我找到了,今晚回家试试
The Intel Graphics Media Accelerator Driver (installed with the Intel
Chipset Graphics Card) runs a process called igfxpers.exe which overrides
custom colour calibration.
It can be prevented from running at system startup by unchecking the
corresponding entry in the Administrative Tools / System Configuration '
Startup' tab (Windows 7), accessed by clicking on Start.
My thanks to Robert, to Manfred, and to all who took an interest.
igfxpers.exe can... 阅读全帖
m**c
发帖数: 7299
8
来自主题: WaterWorld版 - 这是一个振奋人心的消息! (转载)
【 以下文字转载自 GayStudy 俱乐部 】
发信人: msgc (为了下一代免遭变态残害), 信区: GayStudy
标 题: 这是一个振奋人心的消息! (转载)
发信站: BBS 未名空间站 (Sun May 18 13:29:53 2014, 美东)
【 以下文字转载自 USANews 讨论区 】
发信人: msgc (为了下一代免遭变态残害), 信区: USANews
标 题: 这是一个振奋人心的消息!
发信站: BBS 未名空间站 (Sat May 17 22:30:01 2014, 美东)
让那些为了讨好变态人渣而贪赃枉法的人渣也想一想天理报应.
Impeach Chris Piazza? Look who's talking
Posted by Max Brantley on Sun, May 11, 2014 at 7:27 AM
Some elements of the Arkansas legislature Crackpot Caucus emerged Saturday
to talk of impeaching Pulaski Circuit Jud... 阅读全帖
R***a
发帖数: 41892
9
来自主题: Joke版 - 社会主义不是盖的
雷击override了overriding system?
m**c
发帖数: 7299
10
【 以下文字转载自 GayStudy 俱乐部 】
发信人: msgc (为了下一代免遭变态残害), 信区: GayStudy
标 题: 阿肯色痢疤肉法官帮助变态人渣践踏人权被弹劾
发信站: BBS 未名空间站 (Sun May 18 13:40:39 2014, 美东)
这个畜生刚刚宣布支持变态人渣强行改变属于正常人千百年的婚姻定义,就为此遭到被
弹劾!
让那些为了讨好变态人渣而贪赃枉法的人渣也想一想天理报应.
Impeach Chris Piazza? Look who's talking
Posted by Max Brantley on Sun, May 11, 2014 at 7:27 AM
Some elements of the Arkansas legislature Crackpot Caucus emerged Saturday
to talk of impeaching Pulaski Circuit Judge Chris Piazza for his ruling
striking down the state ban on same-sex marriage... 阅读全帖
b*****l
发帖数: 9499
11
来自主题: Thoughts版 - Windows 7 WPA-PSK 咋整啊? (转载)
改不了。我把 router 改成 WEP,然后把本子上的 wireless 改为 WEP,链接,报失败
,然后自动把 wireless 的 security 设置给我改回 WPA。到底是先失败的,还是先改
回 WPA 的涅?。。。 思考。。。
靠,竟然 override 我的设置。一定有个选项,选择系统是否可以 override 我的设置
。但这个选项会藏在哪里涅?。。。
x*a
发帖数: 4968
12
来自主题: TrustInJesus版 - 答嘁哩喀喳问题系列之一:白纸黑字
首先,这不是什么标准答案,不过是个人看法仅供参考。
其次,我最不喜欢长贴,所以字句俭省,见谅。
第三,虽然题目是答嘁哩喀喳网友,但那只是因为问题是从他那来的。本贴只是分享,
并无意解决他的疑惑。
白纸黑字:妇女蒙头、会中不可开口;人不可嫁娶;不可吃猪肉;不可这、不可那……
对这类问题的回答:
【加拉太书 第5章】
22. 圣灵所结的果子、就是仁爱、喜乐、和平、忍耐、恩慈、良善、信实、
23. 温柔、节制.这样的事、没有律法禁止。
【提摩太前书 第4章】
4. 凡神所造的物、都是好的.若感谢着领受、就没有一样可弃的.
5. 都因神的道和人的祈求、成为圣洁了。
===========================
通常反基的攻法,是从正反两个方面:
正方,直来直去型的。咬死“白纸黑字”这个词,一味坚持条例最大。完全不理会律法
的总纲就是爱这句。
反方,冷嘲热讽型的。既然条例有 override,那么干脆我就一切都可以 override,律
法就是没用的。
大致如此吧。
a*****c
发帖数: 3525
13
从这个词(Hokkien dialect)才知道这个牛妈妈是福建人。
http://online.wsj.com/article/SB1000142405274870411150457605971
* The Wall Street Journal
* THE SATURDAY ESSAY
* JANUARY 8, 2011
Why Chinese Mothers Are Superior
Can a regimen of no playdates, no TV, no computer games and hours of music
practice create happy kids? And what happens when they fight back?
By AMY CHUA
A lot of people wonder how Chinese parents raise such stereotypically
successful kids. They wonder what these parents do to produce so ma... 阅读全帖
T********l
发帖数: 1670
14
来自主题: Zhejiang版 - Why Chinese Mothers are Superior(ZZ)
Why Chinese Mothers Are Superior
THE SATURDAY ESSAY JANUARY 8, 2011
By AMY CHUA
A lot of people wonder how Chinese parents raise such stereotypically successful kids. They wonder what these parents do to produce so many math whizzes and music prodigies, what
it's like inside the family, andwhether they could do it too. Well, I can tell them, because I've done it. Here are some things my daughters, Sophia and Louisa, were never allowed to do:
• attend a sleepover
• have a playdate
&#... 阅读全帖
h****g
发帖数: 11365
15
https://gist.github.com/adaugherity/7435890
复制下来,创建个.rb文件。然后terminal里边: ruby path-edid.rb
把生成的文件夹复制到:
/System/Libray/Displays/Overrides/
然后重启机器。进入system preferences/displays. 选外界显示器,然后看color里边
的profile是不是变成带"override"的。如果是,就会好不少。
d****n
发帖数: 94
16
我看了下,el captain下面放配置文件的位置是:/System/Library/Displays/
Contents/Resources/Overrides
不是链接里面提到的/System/Library/Displays/Overrides
我刚试了下,可以的,前几天刚升级的,升完屏幕就又花了,刚弄了下好了
t********k
发帖数: 808
17
比如:
create or replace type A as object (
rowsID integer;
member procedure printRowsID
);
create or replace type body A as
member procedure printMembers is
begin
dbms_output.put_line(rowsID);
end;
end;
create or replace type B under A (
roundNO number(2),
overriding member procedure printMembers
);
create or replace type B as
overriding member procedure printMembers is
begin
dbms_output.put_line(roundNO);
end;
end;
在B对象中重载了printMembers
但我想在B的printMembers方法中调用A的printMembers方法
在java中,直接用super.print
x*g
发帖数: 689
18
来自主题: DotNet版 - datagrid的问题
asp.net的新手问题。
我在很多page里面用到datagrid来显示数据, 我要把负的数据
显示成红色。这个可以在ItemBound里做, 但是这个办法就是
每个datagrid都要在ItemBound写很多code。 我想自己做一个
NumericDataGrid从Datagrid里inherit出来, 同时override
DataGrid的一些method来吧负的数据自动显示成红色,更好
的就是加一个property让user可以自己设定负数的颜色。
我的问题是我要override哪个method才能达到上述目的?
多谢!
v******n
发帖数: 421
19
来自主题: DotNet版 - 大牛指教:新手List<>问题
一般不应该 override .net framework 里的东西吧,你可以用ListLong的ToString(),
override一下,或者用extension method (但是不能用ToString这个名字)
n*****3
发帖数: 15
20
新手刚开始vb.net不到一年,event handler部分还很困惑。手头有一个project, 是一
个windowsCE版的application.我的工作是把它转成windows application will be
running on win 7 os, 所有程序都不用改,只是event handler process 要改, 因为
不同os系统。
app是这样的,main form只包括一些button, click the button to open secondary
level forms, these forms will handle the sanner event, and based on the data
input, 3rd level forms could be open from some point and handle scanner
event too.
main form will just initial scanner class, no data handler. the secondary
and third level fo... 阅读全帖
n*****3
发帖数: 15
21
新手刚开始vb.net不到一年,event handler部分还很困惑。手头有一个project, 是一
个windowsCE版的application.我的工作是把它转成windows application will be
running on win 7 os, 所有程序都不用改,只是event handler process 要改, 因为
不同os系统。
app是这样的,main form只包括一些button, click the button to open secondary
level forms, these forms will handle the sanner event, and based on the data
input, 3rd level forms could be open from some point and handle scanner
event too.
main form will just initial scanner class, no data handler. the secondary
and third level fo... 阅读全帖
e***c
发帖数: 68
22
来自主题: Java版 - Core Java2 Notes (4)
14. In C++, a method is not dynamically bound by default, and you can tag it
as inline to have method
calls replaced with the method source code. However, there is no machanism t
hat would prevent a subclass
from overriding a superclass method. ( In Jave, final keyword works for this
function, which is claimed
to be more efficiency because of static binding, and safety that no derivate
d class can override that
function.) In C++, it is possible to write classes from which no other class
es from
p*******y
发帖数: 133
23
I am confused what is the relationship between these three.
it seems most of the time, repaint() calls update(), and update()
calls paint().
but sometime we override update() and put all the code for
painting there, without overriding paint(), the graphics just
wouldn't be painted.
I checked the java API for the repaint() description. it seems
sometimes it calls paint() directly, but only when the component
is lightweighted. In all my GUI, i just used AWT, would that
be a problem, i mean maybe t
g****y
发帖数: 15
24
来自主题: Java版 - 请问protected的使用
public method是一个class给其它class调用的interface,当且仅当一个method需要这样
的access属性时,才用public。
private method时一个class内部自己用的,不能subclass被override,对subclass也不
可见。
protected method对subclass是可见的,并且在subclass里可以override。一个base
class里的protected method可以看作是这个class给subclass用的interface。
一个method不是使用过程中有需要才改public,而是要设计时就想好这个class需要提供
什么用的功能,别的class如何使用它,有可能会怎样扩展它的功能。




classloader
Family M.1136428243.j0 yokel uuuu 大家发现没有?
Joke M.1136428270.Z0 redpearl redpearl Re: 全國各地“石頭剪子佈”叫法徴集zt
Family M.1136428251.o0 dude lost R
d**********g
发帖数: 1146
25
来自主题: Java版 - 请教一个简单的问题
多谢,我自己也找到答案了。其实static的method 不能override,但是如果不在第7行
加上static,Java编译器会认为要override,因此会报错
g**********y
发帖数: 14569
26
来自主题: Java版 - eclipse hot key
顺便推荐几个很好用的组合:
Ctrl + G: find declaration in Workspace
F3: go to function definition
Ctrl + Shift + G: find reference in Workspace (this is my favorite)
Ctrl + T: show method override hierarchy (very useful if it is true OO, the
biggest headache in reading OO code is: you never know whether child class
override it or not unless you open the source code)
Ctrl + Shift + P: go to matching bracket (I use this combination less now
because I hate multiple brackets; when come to javascript world, it bec
c*****t
发帖数: 1879
27
来自主题: Java版 - JTextArea行间距如何设定?
1. flashing is because of clearing the background to white.
2. For JComponents (i.e. JTextArea), you really should override
paintComponent
function instead of paint (which is for heavyweight components).
3. If you were to override paint function, do not call super.paint.
4. Turn on double buffering.
5. Should not call g.finalize
h*********e
发帖数: 247
28
来自主题: Java版 - java ,wait ,notify notifyall
try this, all clear.
import java.util.concurrent.atomic.AtomicInteger;
public class ThreadExample
{
public static volatile AtomicInteger count = new AtomicInteger(0);
public static Object lock = new Object();
/**
* @param args
*/
public static void main(String[] args)
{
Runnable a = new Runnable() {
@Override
public void run()
{
synchronized(lock)
{
System.out.println("A ... 阅读全帖
S******1
发帖数: 269
29
来自主题: Java版 - java的一个问题
When you override a method, it will act based on the dynamic reference.
When you override a property, it will act based on the static reference.
You probably need to see this video:
http://www.youtube.com/watch?v=OD2o6dNZIwA&feature=BFa&list=EC4
z*******3
发帖数: 13709
30
来自主题: Java版 - 报offer咯
这是最早想到的,很早以前就想的
thread
这是一个abstract class吗?
其实不是啊,这是一个concrete class
你说的这几个方法都deprecated了
你们说的都是我想过的,我第一个猜测也是猜thread那边应该有一个abstract class
但是后来找了找,thread和runnable都不是啊
然后你说的其实是override,不是abstract本身
是个class就可以override,所以这个例子还是不行

How
those
m*****k
发帖数: 731
31
来自主题: Java版 - eclipse 怪问题
我的eclipse 对如下报错误,必须comment掉@Override才行,我都要
疯了。
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class FooGUI {
public static void main(String[] args) {
//initialize GUI components
final JFrame jf = new JFrame("Hello world!"); //allows jf to be
accessed from inner class body
jf.add(new JButton("Click me"));

// pack and make visible on the Event-Dispatch Thread
SwingUtilities.invokeLater(new Runnabl... 阅读全帖
t*******e
发帖数: 684
32
来自主题: Java版 - 现在有些迷惑了
既是自然规律,也是搞钱需要。
xml和annotation没什么大冲突。
A general rule that applies to various Java technologies is that
configurations set programmatically take precedence over values in XML, and
that XML always overrides annotations. I think of XML and annotations as
complementary techniques. For relatively static settings closely related to
specific Java classes, methods, properties, I would use source-level
annotations. I prefer to use XML for more volatile, global settings not tied
to Java source code to avoi... 阅读全帖
T***B
发帖数: 137
33
来自主题: Java版 - 工作中遇到的并行处理问题
照着mectite,goodbug二位的思路写了一下,代码如下. 试着跑了一下,运行结果和预
期吻合。我有一个问题:我在PredictRequest.call()里面把current thread cast成
PredictorThread从而拿到predictor object. 还有更好的办法把predictor (inside
the thread) 和callable联系起来吗?
Predictor.java
public class Predictor {
private String name;

public Predictor(String name) {
// heavy lifting stuff.
this.name = name;
System.out.println("Created predictor " + name);
}
public synchronized String predict(String input) throws
InterruptedExcept... 阅读全帖
c*******e
发帖数: 290
34
来自主题: Java版 - ThreadLocal 的一个 use case
对,因为那个 date 是个 local variable, 每次都重新创建。所以,他那个例子完全
不适合,根本就用不上 ThreadLocal, 他那个 PerThreadFormatter 完全是多余的. 贴
出他的完整例子:
/**
*
* @author
*/
public class ThreadLocalTest {
public static void main(String args[]) throws IOException {
Thread t1 = new Thread(new Task());
Thread t2 = new Thread( new Task());

t1.start();
t2.start();

}

/*
* Thread safe format method because every thread will use its own
DateFormat
*/
public static S... 阅读全帖
p*****3
发帖数: 488
35
来自主题: Java版 - Skyline
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
public class EPI_15_1 {
static class Rect {
public int lft;
public int rgt;
public int height;

public Rect(int l, int r, int h) {
lft = l;
rgt = r;
height = h;
}
}

static class Point {
... 阅读全帖
S******1
发帖数: 216
36
/**
* Definition for a point.
* class Point {
* int x;
* int y;
* Point() { x = 0; y = 0; }
* Point(int a, int b) { x = a; y = b; }
* }
*/
public class Solution {

class Line {
boolean vertical = false;
double slop = 0.0;
double intercept = 0.0;

public Line(Point pt1, Point pt2) {
if (pt1.x == pt2.x)
{
vertical = true;
intercept = pt1.x;
}
else
... 阅读全帖
t*********e
发帖数: 630
37
来自主题: Java版 - JSF is actually fucking cool
package org.converter;
import java.net.URI;
import java.net.URISyntaxException;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
@FacesConverter("org.converter.UrlConverter")
public class UrlConverter implements Converter {
@Override
public Object getAsObject(FacesContext facesContext,
... 阅读全帖
t*********e
发帖数: 630
38
来自主题: Java版 - JSF is actually fucking cool
package org.converter;
import java.net.URI;
import java.net.URISyntaxException;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
@FacesConverter("org.converter.UrlConverter")
public class UrlConverter implements Converter {
@Override
public Object getAsObject(FacesContext facesContext,
... 阅读全帖
z*******3
发帖数: 13709
39
用编码实现
我找了半天,只找到一个gc后的notification
能在gc后调用代码来做一些操作
其实我想在gc之前,就释放一些东西
然后gc时候就直接gc掉酱紫,不过现在这样也勉强能用
无非就是第一次gc之后,释放,然后等下一次gc再释放就是了
我想自己写一个vert.x的session manager
官方的那个要用到mongo,还没怎么用过,我很怀疑有没有人用过了
估计上网找也找不出什么名堂来,还是自己写方便一点
下面是我写的测试代码,idea都在这里面了
要求java 7u4以上版本,否则拿不到GarbageCollectionNotificationInfo这个类
无法编译
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
import java.util.ArrayList;
import java.util.List;
import javax.management.Notification;
import javax.ma... 阅读全帖
f**********t
发帖数: 1001
e******r
发帖数: 220
41
看都看晕了. .h file, 里面有指针, 象C++
可是, 里面又有^, ref, override, 又象C#
public ref class NetLatLongPoint : public IDisposable
{
private:
CLatLongPoint* m_unManagedLatLongPoint;
public:
virtual String^ ToString() override
{
String ^s = gcnew String("");
s += "Lat: " + m_unManagedLatLongPoint->lat + ", ";
s += "Lng: " + m_unManagedLatLongPoint->lng + ", ";
s += "Height: " + m_unManagedLatLongPoint->Z + ", ";
s += "U: " + m_unManagedLatLongPoint-
c******n
发帖数: 4965
42
来自主题: Programming版 - ft, 你们谁知道这个?
If you override equals, you should also override hashCode()
barely documented ....
http://leepoint.net/notes-java/data/expressions/22compareobjects.h/tml
t****t
发帖数: 6806
43
only virtual functions *override*. non virtual functions only hide, they do
not override.

the
a
c**t
发帖数: 2744
44
来自主题: Programming版 - c# decorator pattern question
solution:
class ConcreteDecoratorA : Decorator
{
public override void Operation()
{
base.Operation();
Console.WriteLine("ConcreteDecoratorA.Operation()");
localComponent.var *= 2;
var = localComponent.var;
localComponent.get();
}
}
class ConcreteDecoratorB : Decorator
{
public override void Operation()
{
base.Operation();
AddedBehavior();
Console
s*w
发帖数: 729
45
来自主题: Programming版 - Two classic C++ questions, how to answer
of course u can override the default operator new by providing your own
version. But your macro above is not overriding. It works to a certain
degree but there is better way to do it.
When one faces the problem of finding memory leaks, the solution is not to
program one's own tool but to use an existing tool. I do not think the
interviewer expect to hear how to program this tool, coz that shows you
have not ever used any such tool. You only do that when existing tools
cannot solve your probl... 阅读全帖
X****r
发帖数: 3557
46
那我随便举个例子,比如你写了一个Custom Annotation Processor来帮助你检查每个@
Override了equals的类都@Override了hashCode。但是你后来发现有些类可以例外,你
就定义了个@NoEqualHashCodeOverrideCheck的annotation,这样你的processor就可以
跳过这些类不检查。
再随便举个例子,比如你写个web server,有些页面需要登录用户才能访问,所以你就
写了个interceptor,用来redirect未登录的用户到登录页面然后再redirect回来。这
些页面的action handler就可以加个@LoggedInOnly的annotation以激活这个
interceptor。
z*******3
发帖数: 13709
47
pojo的本意是不需要继承任何特定的接口和父类
早先年版本的ejb往往要求继承特定的接口,struts等要求继承特定的抽象类
因为这种模式其实很糟糕,群众往往弄不清楚要override的方法到底是做什么的
使得j2ee早期的推广面临着很大的困难
最常见的就是ejb的那4个接口,其中的stateful还有4个方法要override
没有多少人真能弄懂到底这些方法是做什么用的
spring出现之后,不需要继承任何特定的接口和类,简单很多很多
所以一下子就使得spring在很短时间内推广开来
全民皆编java也就是那个时候开始的
另外严格意义上的pojo连特定的annotation都不要求
但是因为annotation其实比xml要简单
所以广义的pojo就也包括那些要求使用特定annotation的java bean了
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)