当前位置:网站首页>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

边栏推荐
- 徽商期货开户可靠吗?新手如何安全开户?
- Katalon框架测试web(八)等待
- Pseudo instruction in arm assembly
- [pwn basics]pwntools learning
- 8 种最坑SQL语法,工作中踩过吗?
- 诚邀 Elastic Stack 开发者成为 CSDN Elastic 云社区管理员
- RISCV 的 cache
- Im instant messaging source code + software +app with detailed package video building tutorial
- IDA静态逆向分析工具使用详解
- Win10 uses the user's initial password and fails to connect to the win server
猜你喜欢

【yarn】Name contains illegal characters

Katalon recoder common commands

Cloud whale took the lead in arranging door-to-door services to see how it broke through the industry "blockade" with services

Xshell连接虚拟机只能输入public key解决方案【亲测】
![[ACTF新生赛2020]swp](/img/80/9fe85ee614857c5800c0d0b1ba9a3d.png)
[ACTF新生赛2020]swp

Farm Game

滴滴工程效能平台建设之路

再次认识 WebAssembly

Im instant messaging source code + software +app with detailed package video building tutorial

数据治理的重要性
随机推荐
【微信小程序】微信小程序使用弹出框多级联动(示例)
Mathematical knowledge: greatest common divisor divisor
The tangled truth about NFT and copyright
note
关于一次Web线下面试的思考
Katalon recoder common commands
数学知识:约数之和—约数
Katalon framework test web (VIII) wait
Farm Game
You have a chance, here is a stage
Lecture 3 of Data Engineering Series: characteristic engineering of data centric AI
The difference between overloading and overriding
[actf freshman competition 2020]swp
Brief idea and simple case of JVM tuning - space allocation guarantee mechanism in the old age
关于一次Web线下面试的思考
如何判断一个男人将来是穷还是富?
数据工程系列精讲(第三讲): Data-centric AI 之特征工程
File upload vulnerability shooting range analysis upload_ LABS
AttributeError: ‘WebDriver‘ object has no attribute ‘w3c‘
【2023提前批 之 面经】~ 青岛鼎信科技