当前位置:网站首页>Record a small JSP bug
Record a small JSP bug
2022-06-22 00:37:00 【Fairy wants carry】
learn Java It's been a long time ,jsp I haven't done it for a long time , I made some mistakes in my homework this time bug Make a note of ( I'm in a good mood, or I won't record it )
first :
Because we are maven project , But the database requires Oracle, The main window here has been tested and there is no problem , However, once running, it will report an error saying that the drive failed
Because our local warehouse does not Oracle Rely on the , So we guided the package

There are two ways to guide the package :
1. Project Producture Medium libaries Import jar package
2. stay WEB-INF Set up under the lib Directory import jar Right click after package as xxx Here it is
At this time, another problem arises Maven project , There will be some problems with the first kind of guide package , The specific reasons have not been thoroughly explored ,debug It is found that there is still a problem in the connection, which indicates that this is Maven This is not the case in the project , The second one is safer ;
If you want to solve the first problem :
need maven Compile the
<resources>
<resource>
<directory>lib</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources> <compilerArguments>
<!-- Package local jar package -->
<extdirs>${project.basedir}/lib</extdirs>
</compilerArguments> 、
the second , The main class could not be found and could not be loaded
I was stunned , I found JDBC The main program of does not run code , Or an error ,rebuild Not yet. ;
After my thinking, I got , Because our project has constituted , Then I'm because after the build , Copied code from other places ;

after rebuild I checked the bytecode and found that some files didn't ;
At this point we need to project structure in Modules Delete all the configurations in , And then reconfigure , Again rebuild I found all of them , There is no problem
IDEA appear Module ** must not contain source root **. The root already belongs to module ** Solutions to such errors Similar to the above solution , Most of this is because module problem

边栏推荐
- 【Try to Hack】nmap
- Farm Game
- 美国旅游签证面试须知,我来敲重点啦!
- 【愚公系列】2022年06月 通用职责分配原则(九)-受保护变量原则
- File upload vulnerability shooting range analysis upload_ LABS
- Katalon框架测试web(十八)框架frame操作
- Document.readyState 如何使用和侦听
- Importance of data governance
- 【Try to Hack】nmap
- Recruitment brochure for traditional product manager international qualification certification (NPDP) in the second half of 2022
猜你喜欢
随机推荐
Thinking about a web offline interview
qt QMediaPlayer获取音频播放结束状态
If a programmer goes to prison, will he be assigned to write code?
汇编语言范例
Im instant messaging source code + software +app with detailed package video building tutorial
File upload vulnerability shooting range analysis upload_ LABS
Blazor数据绑定
珂朵莉树 范围查询 chtholly tree Old driver tree
Win10使用用户初始密码,连接Win Server失败
rabbit:do_ run_ postlaunch_ phase/0 line 932
Blazor data binding
关于一次Web线下面试的思考
leetcode 279. Perfect squares (medium)
[typescript] the difference between exclamation mark and question mark in typescript
【2023提前批 之 面经】~ 中新赛克
We sincerely invite elastic stack developers to become CSDN elastic cloud community administrators
你有一个机会,这里有一个舞台
数据工程系列精讲(第三讲): Data-centric AI 之特征工程
客户端建设及调优实践
JVM調優簡要思想及簡單案例-老年代空間分配擔保機制








