2.WINDOWS *** 作系统中的二进制可执行文件,可执行文件分两种一种是后辍名为.COM另一种就是.EXE 了
.COM一般用于DOS,在WINDOWS系统中的执行文件一般都是.EXE文件
在 MS-DOS 中,用带瞎以标识可执行文件的文件扩展
名。用户在提示行中输入不带 .exe 扩展名的文件名后按 Enter 键就能运蠢链空行可执行程序唤穗
本文将介绍如何让现有的Spring Boot项目接入Apollo,还未搭建Apollo服务端的请移步到我前面的文章进行阅前御读。
下面以 Cas 单点登录项目为例,进行简单的接入 *** 作,更多详细的方法请参考:
[github官方文档] https://github.com/ctripcorp/apollo/wiki/Java 客户端使用指南败悔档
接入之前,需要先在 Apollo 服务器创建需要的配置项。
默认访问: localhost:8070 创建项目
添察乱加并发布配置项
修改 application.properties 或 bootstrap.properties 配置
在启动类添加 @EnableApolloConfig 注解。
目前在我们公司的项目中,cas使用第一种方式,其他项目使用第二种方式。因为cas单点登录的启动类不是我们自定义的,直接在配置文件中配置比较方便。
其他方式这里不进行介绍了,想具体了解的可以到官网。
在 application.properties 或者 bootstrap.properties 中按照如下样例进行配置
这种配置方式不适用于多个war包部署在同一个tomcat的使用场景,考虑到我们公司虽然是做往微服务方向发展,但是可能也会以war包的形式部署到同一个tomcat,所以我没采用这种方式,而是采用了第二种方式。
在 resources/META-INF/ 目录下创建 app.properties 文件,把 app.id 和 apollo.meta 的配置移到该配置文件.
下图中,我采用了占位符形式是为了便于实施人员在Maven编译部署时可以以设置变量的方式进行赋值,避免更改配置文件(这里可以不用Maven设置变量的方式,直接写configserver的地址也可以。)。而开发人员在本地进行开发时,可以在通过 server.properties 配置文件来进行配置 apollo.meta ,因为通过 server.properties 配置的方式优先级比在 app.properties 配置的方式高。
使用Maven设置变量的方式需要在pom.xml文件添加resources标签
通过server.properties配置文件
启动 Cas 成功,登录后,访问上面的测试接口:
apollo 配置起效。
我也是,希望有高手能解正睁答。链清碰不知道是不是中毒了,用卡巴杀过,有一棚谈个木马吧.我是vista的
Windows Vista (TM) Ultimate Service Pack 1 [Build 6.0.6001]
QQ2009 25.15.1060 8C568A9ECFFC832187923B4515ED3BA4
----------------------------------------
Type: EXCEPTION_ACCESS_VIOLATION
Address: 0012F6EC
Error: Write address 0x0012F6EC
CallStack:
0X0012F6EC<unknown module>: (-2147467259,26079852,37452116,1)
0X03310000[19CE] TSEPB.DAT: (26808512,0,37452116,26079852)
0X032E0000[1802] TSELoder.DAT: (53480840,53479688,1243348,0)
0X03380000[4BF7] TSEngine.DAT: (53477376,0,32,54536368)
0X03380000[256FC] TSEngine.DAT: (53477376,0,16,54536368)
0X03380000[256FC] TSEngine.DAT: (54536408,1243432,54170504,54228560)
0X03380000[3A52] TSEngine.DAT: (12,54152831,12,54006327)
0X03380000[255F3] TSEngine.DAT: (12,54006327,53479744,0)
0X03380000[24E7F] TSEngine.DAT: (53479744,0,-2147467259,37452116)
0X03380000[1237] TSEngine.DAT: (26079832,26079852,37452088,1243800)
0X032E0000[1687] TSELoder.DAT: (26017792,0,292,0)
0X773D0000[9E04] msvcrt.dll: (26017792,0,8,37452112)
0X773D0000[9E04] msvcrt.dll: (8,-2147467259,53353361,53353395)
0X773D0000[A19D] msvcrt.dll: (53353395,26808496,37452112,-2147467259)
0X032E0000[1B91] TSELoder.DAT: (26808496,37452112,-2147467259,26808496)
0X032E0000[1BB3] TSELoder.DAT: (53392328,0,-2147467259,53350667)
0X032E0000[19D2] TSELoder.DAT: (37452088,1641020859,26079832,37452116)
0X032E0000[110B] TSELoder.DAT: (26079832,37452116,922240065,37452088)
0X61C00000[FFDBB] MainFrame.dll: (36459748,37801840,1243844,1641369234)
0X30000000[13B97D] Common.dll: (36459764,922240009,37452088,37452004)
0X61C00000[1009CF] MainFrame.dll: (922240045,37212976,37452004,37212976)
0X61C00000[10B370] MainFrame.dll: (37212976,1,36677432,922240509)
0X61C00000[10B7FE] MainFrame.dll: (37212976,1,36677432,922240397)
0X61C00000[27651] MainFrame.dll: (1,1244064,806493726,36677384)
0X61C00000[1100CA] MainFrame.dll: (36677384,4,921998666,1883212436)
0X30000000[121E1E] Common.dll: (921998630,1981481041,1981481065,-2)
0X30000000[86C9] Common.dll: (2,36676832,4213063,329410)
0X00400000[2A4C] QQ.exe: (329410,275,1024,0)
0X00400000[4947] QQ.exe: (922226808,2,1,0)
0X00400000[3113] QQ.exe: (4266104,0,4241724,460)
0X00400000[240B] QQ.exe: (4194304,0,3087414,1)
0X00400000[7C2C] QQ.exe: (2147299328,1245140,1998972086,2147299328)
0X762A0000[44911] kernel32.dll: (2147299328,1996666924,0,0)
0X77220000[3E4B6] ntdll.dll: (4226456,2147299328,0,0)
Regs:
EAX=0012F6EC, EBX=00000000, ECX=0012F574, EDX=0012F5E4
ESI=77220000, EDI=00000000, EBP=018DF258, ESP=0012F598, EIP=0012F6EC
Bytes at CS:EIP:
B8 E4 00 00 00 BA 00 03 FE 7F FF 12 C2 14 00 90 B8 E5 00 00 00 BA 00 03 FE 7F FF 12 C2 14 00 90
pid=4244 init_tid=5996 crashtid=5996
Bytes at teb:
A4 EC 12 00 00 00 13 00 00 E0 11 00 00 00 00 00 00 1E 00 00 00 00 00 00 00 F0 FD 7F 00 00 00 00 94 10 00 00 6C 17 00 00
Modules:
[00400000,023000] D:\Program Files\Tencent\QQ\Bin\QQ.exe [1.32.1060.0,2009-08-31 03:25:54 GMT]
[77220000,127000] C:\Windows\system32\ntdll.dll [6.0.6001.18000,2008-01-19 07:32:54 GMT]
[762A0000,0DB000] C:\Windows\system32\kernel32.dll [6.0.6001.18215,2009-02-13 08:47:17 GMT]
[73530000,085000] C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6001.18000_none_886786f450a74a05\COMCTL32.dll [5.82.6001.18000,2008-01-19 07:26:33 GMT]
[76040000,0C6000] C:\Windows\system32\ADVAPI32.dll [6.0.6001.18000,2008-01-19 07:27:07 GMT]
[76470000,0C2000] C:\Windows\system32\RPCRT4.dll [6.0.6001.18247,2009-04-23 12:43:11 GMT]
[75FF0000,04B000] C:\Windows\system32\GDI32.dll [6.0.6001.18159,2008-10-21 05:19:03 GMT]
[76190000,09D000] C:\Windows\system32\USER32.dll [6.0.6001.18000,2008-01-19 07:32:03 GMT]
[30000000,20D000] D:\Program Files\Tencent\QQ\Bin\Common.dll [1.32.1060.0,2009-08-29 17:07:28 GMT]
[76230000,02D000] C:\Windows\system32\WS2_32.dll [6.0.6001.18000,2008-01-19 07:32:40 GMT]
[773D0000,0AA000] C:\Windows\system32\msvcrt.dll [7.0.6001.18000,2008-01-19 07:30:47 GMT]
[763D0000,006000] C:\Windows\system32\NSI.dll [6.0.6001.18000,2008-01-19 07:32:52 GMT]
[75E30000,0E6000] C:\Windows\system32\WININET.dll [8.0.6001.18813,2009-07-21 21:53:28 GMT]
[77370000,058000] C:\Windows\system32\SHLWAPI.dll [6.0.6001.18000,2008-01-19 07:31:40 GMT]
[77050000,003000] C:\Windows\system32\Normaliz.dll [6.0.6000.16386,2006-11-02 08:33:06 GMT]
[770E0000,132000] C:\Windows\system32\urlmon.dll [8.0.6001.18813,2009-07-21 21:52:17 GMT]
[75C50000,144000] C:\Windows\system32\ole32.dll [6.0.6001.18000,2008-01-19 07:31:24 GMT]
[75DA0000,08D000] C:\Windows\system32\OLEAUT32.dll [6.0.6001.18000,2008-01-19 07:31:27 GMT]
[758D0000,1E8000] C:\Windows\system32\iertutil.dll [8.0.6001.18813,2009-07-21 21:48:05 GMT]
[75AC0000,18A000] C:\Windows\system32\SETUPAPI.dll [6.0.6001.18000,2008-01-19 07:31:32 GMT]
[74F90000,008000] C:\Windows\system32\VERSION.dll [6.0.6001.18000,2008-01-19 07:32:06 GMT]
[75830000,007000] C:\Windows\system32\PSAPI.DLL [6.0.6000.16386,2006-11-02 09:42:49 GMT]
[75190000,019000] C:\Windows\system32\iphlpapi.dll [6.0.6001.18000,2008-01-19 07:30:51 GMT]
[75130000,035000] C:\Windows\system32\dhcpcsvc.DLL [6.0.6001.18000,2008-01-19 07:27:29 GMT]
[75450000,02C000] C:\Windows\system32\DNSAPI.dll [6.0.6001.18000,2008-01-19 07:28:14 GMT]
[75760000,014000] C:\Windows\system32\Secur32.dll [6.0.6001.18272,2009-06-15 15:24:44 GMT]
[756A0000,007000] C:\Windows\system32\WINNSI.DLL [6.0.6001.18000,2008-01-19 07:33:11 GMT]
[75100000,021000] C:\Windows\system32\dhcpcsvc6.DLL [6.0.6001.18000,2008-01-19 07:27:30 GMT]
[6F670000,0DC000] C:\Windows\system32\dbghelp.dll [6.0.6001.18000,2008-01-19 07:27:33 GMT]
[76110000,073000] C:\Windows\system32\comdlg32.dll [6.0.6001.18000,2008-01-19 07:31:30 GMT]
[76540000,B10000] C:\Windows\system32\SHELL32.dll [6.0.6001.18167,2008-11-06 13:11:23 GMT]
[73D40000,01B000] C:\Windows\WinSxS\x86_microsoft.vc80.atl_1fc8b3b9a1e18e3b_8.0.50727.4053_none_d1c738ec43578ea1\ATL80.DLL [8.0.50727.4053,2009-07-12 02:40:37 GMT]
[70490000,087000] C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_d08d7da0442a985d\MSVCP80.dll [8.0.50727.4053,2009-07-12 02:39:12 GMT]
[703F0000,09B000] C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_d08d7da0442a985d\MSVCR80.dll [8.0.50727.4053,2009-07-12 02:37:45 GMT]
[74A20000,02D000] C:\Windows\system32\WINTRUST.dll [6.0.6001.18000,2008-01-19 07:33:29 GMT]
[75230000,0F1000] C:\Windows\system32\CRYPT32.dll [6.0.6001.18000,2008-01-19 07:31:57 GMT]
[75390000,012000] C:\Windows\system32\MSASN1.dll [6.0.6000.16386,2006-11-02 09:41:21 GMT]
[75780000,01E000] C:\Windows\system32\USERENV.dll [6.0.6001.18000,2008-01-19 07:32:05 GMT]
[76260000,029000] C:\Windows\system32\imagehlp.dll [6.0.6001.18000,2008-01-19 07:30:17 GMT]
[753D0000,075000] C:\Windows\system32\NETAPI32.dll [6.0.6001.18157,2008-10-16 04:44:14 GMT]
[31800000,08C000] D:\Program Files\Tencent\QQ\Bin\KernelUtil.dll [1.32.1060.0,2009-08-29 17:09:11 GMT]
[30800000,29E000] D:\Program Files\Tencent\QQ\Bin\GF.dll [1.32.1060.0,2009-08-29 17:16:23 GMT]
[10000000,00B000] D:\Program Files\Tencent\QQ\Bin\xGraphic32.dll [1.32.1060.0,2009-08-29 17:04:45 GMT]
[74BC0000,005000] C:\Windows\system32\MSIMG32.dll [6.0.6000.16386,2006-11-02 09:42:42 GMT]
[77350000,01E000] C:\Windows\system32\IMM32.dll [6.0.6001.18000,2008-01-19 07:30:29 GMT]
[75F20000,0C8000] C:\Windows\system32\MSCTF.dll [6.0.6001.18000,2008-01-19 07:30:40 GMT]
[77060000,07D000] C:\Windows\system32\USP10.dll [1.626.6001.18000,2008-01-19 07:32:06 GMT]
[61210000,1D6000] D:\Program Files\Tencent\QQ\Bin\AppUtil.dll [1.32.1060.0,2009-08-31 02:24:27 GMT]
[740D0000,1AB000] C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6001.18065_none_9e7abe2ec9c13222\gdiplus.dll [5.2.6001.18065,2008-04-30 05:27:32 GMT]
[743B0000,032000] C:\Windows\system32\WINMM.dll [6.0.6001.18000,2008-01-19 07:33:10 GMT]
[74370000,039000] C:\Windows\system32\OLEACC.dll [4.2.5406.0,2008-01-19 07:31:25 GMT]
[76290000,009000] C:\Windows\system32\LPK.DLL [6.0.6001.18000,2008-01-19 07:29:45 GMT]
[74620000,19E000] C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll [6.10.6001.18000,2008-01-19 07:31:30 GMT]
[74920000,03F000] C:\Windows\system32\uxtheme.dll [6.0.6001.18000,2008-01-19 07:32:10 GMT]
[763E0000,084000] C:\Windows\system32\CLBCatQ.DLL [2001.12.6931.18000,2008-01-19 07:27:43 GMT]
[715D0000,126000] C:\Windows\System32\msxml3.dll [8.100.1048.0,2008-09-05 05:11:41 GMT]
[74CA0000,03B000] C:\Windows\system32\rsaenh.dll [6.0.6001.18000,2008-01-19 07:31:32 GMT]
[65000000,0DB000] D:\Program Files\Tencent\QQ\Bin\MsgMgr.dll [1.32.1060.0,2009-08-31 02:43:50 GMT]
[61C00000,1FF000] D:\Program Files\Tencent\QQ\Bin\MainFrame.dll [1.32.1060.0,2009-08-31 07:42:52 GMT]
[6F1B0000,030000] C:\Windows\system32\mlang.dll [6.0.6001.18000,2008-01-19 07:29:37 GMT]
[68A50000,4A3000] C:\Windows\system32\Macromed\Flash\Flash10c.ocx [10.0.32.18,2009-07-18 03:11:53 GMT]
[6EC70000,062000] C:\Windows\system32\mscms.dll [6.0.6001.18000,2008-01-19 07:30:37 GMT]
[735E0000,042000] C:\Windows\system32\WINSPOOL.DRV [6.0.6001.18000,2008-01-19 07:33:24 GMT]
[73F80000,02F000] C:\Windows\system32\wdmaud.drv [6.0.6001.18000,2008-01-19 07:32:03 GMT]
[74290000,004000] C:\Windows\system32\ksuser.dll [6.0.6000.16386,2006-11-02 09:42:33 GMT]
[742C0000,027000] C:\Windows\system32\MMDevAPI.DLL [6.0.6001.18000,2008-01-19 07:29:49 GMT]
[74350000,007000] C:\Windows\system32\AVRT.dll [6.0.6001.18000,2008-01-19 07:27:17 GMT]
[73F50000,021000] C:\Windows\system32\AUDIOSES.DLL [6.0.6001.18000,2008-01-19 07:26:51 GMT]
[73BE0000,066000] C:\Windows\system32\audioeng.dll [6.0.6001.18000,2008-01-19 07:26:49 GMT]
[73F20000,009000] C:\Windows\system32\msacm32.drv [6.0.6001.18000,2008-01-19 07:30:13 GMT]
[739D0000,014000] C:\Windows\system32\MSACM32.dll [6.0.6001.18000,2008-01-19 07:30:12 GMT]
[73F10000,007000] C:\Windows\system32\midimap.dll [6.0.6001.18000,2008-01-19 07:30:28 GMT]
[707F0000,A92000] C:\Windows\system32\ieframe.dll [8.0.6001.18813,2009-07-21 21:48:01 GMT]
[75030000,007000] C:\Windows\system32\credssp.dll [6.0.6001.18000,2008-01-19 07:31:53 GMT]
[74D10000,045000] C:\Windows\system32\schannel.dll [6.0.6001.18272,2009-06-15 15:24:13 GMT]
[02540000,012000] C:\Users\Apollo\AppData\Roaming\Tencent\QQ\SafeBase\TSSafeEdit.dat [2009.7.15.14,2009-07-15 02:16:03 GMT]
[60B30000,061000] D:\Program Files\Tencent\QQ\Bin\MSVCP60.dll [6.0.8168.0,2006-01-10 11:15:44 GMT]
[31000000,32D000] D:\Program Files\Tencent\QQ\Bin\IM.dll [1.32.1060.0,2009-08-29 17:21:28 GMT]
[61FE0000,040000] D:\Program Files\Tencent\QQ\Bin\TaskTray.dll [1.32.1060.0,2009-08-31 02:39:02 GMT]
[032B0000,016000] C:\Users\Apollo\AppData\Roaming\Tencent\QQ\SafeBase\TSEH.DAT [2009.9.23.7,2009-09-24 03:06:53 GMT]
[70590000,11B000] C:\Windows\system32\MFC42.DLL [6.6.8063.0,2008-01-19 07:29:56 GMT]
[70520000,065000] C:\Windows\system32\ODBC32.dll [6.0.6001.18000,2008-01-19 07:31:03 GMT]
[71450000,038000] C:\Windows\system32\odbcint.dll [6.0.6000.16386,2006-11-02 09:42:28 GMT]
[032E0000,011000] C:\Users\Apollo\AppData\Roaming\Tencent\QQ\SafeBase\TSELoder.DAT [2008.1.28.13,2008-01-28 06:06:15 GMT]
[03380000,05A000] C:\Users\Apollo\AppData\Roaming\Tencent\QQ\SafeBase\TSEngine.DAT [2008.4.7.25,2008-04-08 09:48:46 GMT]
[03310000,02C000] C:\Users\Apollo\AppData\Roaming\Tencent\QQ\SafeBase\TSEPB.DAT [2009.9.23.38,2009-09-24 03:10:03 GMT]
[75700000,02C000] C:\Windows\system32\apphelp.dll [6.0.6001.18000,2008-01-19 07:26:32 GMT]
----------------------------------------
Crash Signature: A9F7D01D3F45E0377CC7950FCB85D2FB
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)